Apr 25, 2006 #1 dbase77 Technical User Joined Apr 23, 2002 Messages 591 Location IE Hi, Is there any quick way to insert 2 blank lines on every 64 line in the file? Thank you. regards, dbase77
Hi, Is there any quick way to insert 2 blank lines on every 64 line in the file? Thank you. regards, dbase77
Apr 25, 2006 #2 feherke Programmer Joined Aug 5, 2002 Messages 9,541 Location RO Hi Needs GNU [tt]sed[/tt] : Code: sed -i '64~64i ' /input/file Or any [tt]awk[/tt] : Code: awk '{print}NR%64==0{print ""}' /input/file > /output/file Feherke. http://rootshell.be/~feherke/ Upvote 0 Downvote
Hi Needs GNU [tt]sed[/tt] : Code: sed -i '64~64i ' /input/file Or any [tt]awk[/tt] : Code: awk '{print}NR%64==0{print ""}' /input/file > /output/file Feherke. http://rootshell.be/~feherke/
Apr 25, 2006 Thread starter #3 dbase77 Technical User Joined Apr 23, 2002 Messages 591 Location IE Thank you very much. Upvote 0 Downvote