13

Help for File Modification

view full story
linux-howto

http://www.unix.com – Hi All, I have a file. This file contain huge amount of data. I want to modify this file. I want enter new line when count of "~ character is 79. Please find below the code : cat file_name | tr -d '\n' | sed 's/\([^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*"~[^~]*&q (HowTos)