The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 01-06-2009
tostay2003 tostay2003 is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 23

Code:
0000000  \f  \n  \f  \n  \f  \n  \f  \n  \f  \n  \f  \n  \f  \n  \f  \n
0000020  \f  \n  \f  \n
0000024

I got the following with
Code:
od -c

The below code isn't removing it, or may be leaving out the newline characters

Code:
tr -d "\f"

The below sed statement is deleting the complete data

Code:
sed 's[ \t]*\f[ \t]*//g' | sed '/^$/d'


Last edited by tostay2003; 01-06-2009 at 12:13 PM..