Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
awk remove form feed
Name: ltonisma Date: May 6, 2004 at 01:16:40 Pacific OS: HPUX 11.0 CPU/Ram: hpux
Comment:
Hi! I need to create a awk script to remove 2 form feed marks from the beginning of the file. To make sure it will not print 2 empty pages. I cannot make it work. The output will be putting all form feed lines in th begining... Please Help! -- Begin Script { if (FNR<=2) { if ( substr($0,1,1)=="\f" ) { print substr($0,2) } } else { print $0 } }
Summary: I would like to know how do i compare the last line in a file is it equal to form feed using shell script? Below is my script but not work. if [ `tail -n 1 $1` -eq "\f" ] then ..... so i change it to ...
Summary: Sometimes these characters are placed in a file during a DOS to UNIX conversion (these characters can only be viewed using an editor such as vi editor or using the cat –v command to view the file). T...
Summary: Just want to share a script which i code a week ago. And thanks for those in this forum to assist me to complete it! Why this script is come out? Due to local lpd did not perform filter for remote lpd...