Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

put empty lines into a file

Status
Not open for further replies.

vti

Technical User
Feb 26, 2001
189
TR
There is a file which include Ctrl+L character end of the file.And all i want to do is put 21 empty lines up to Ctrl+L character.


Thanks for any help.

 
awk '/^L/ {for (i=0;i<21;i++) printf &quot;\n&quot;} {print}' <file1 >file2

Note: type in Ctrl+V Ctrl+L for ^L
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top