Apr 14, 2003 #1 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.
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.
Apr 15, 2003 #2 Ygor Programmer Feb 21, 2003 623 GB awk '/^L/ {for (i=0;i<21;i++) printf "\n"} {print}' <file1 >file2 Note: type in Ctrl+V Ctrl+L for ^L Upvote 0 Downvote
awk '/^L/ {for (i=0;i<21;i++) printf "\n"} {print}' <file1 >file2 Note: type in Ctrl+V Ctrl+L for ^L