unix - How to insert periodic newlines into a file with 1 incredibly long line -


i have text file 1 line, 2g characters.

i need find within file, line long open in editor - either on unix, or if ftp on pc...

is there quick / simple way insert newline, example, every 120 characters?

fold command that, if want wrap after 120..

fold -w120 fie > newfile 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -