I am trying to process some largish files which lack line separators. I would like to process them with line-oriented tools like grep and sed.
I'd like to put something on the front of my pipeline that will insert a newline every 130 characters. I'm not interested in modifying the input files.
What is an efficient BASH one-liner for adding line every 130 characters to a file without lines?
If you really want efficient, there is special command (part of coreutils) for this:
fold -w130 file | ...
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다