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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove a page break (^L) from a file

Status
Not open for further replies.

vergeb

MIS
Joined
Sep 22, 2003
Messages
8
Location
US
Is there a way to put into a script a command to remove a page break (^L) from a file.

I've tried "sed 's/^L//g'" but it did not work.
 
&quot;strings -1 <file>&quot; would probably work.
 
Try something like this:
Code:
tr -d '\f' <InputFile >FileWithoutFF[/oce]

Hope This Help
PH.
 
Hi:

You can probably get the sed version to work by embedding the octal value of ^L in sed:

# untested
sed 's/'&quot;$(printf '\0145')&quot;'//g'

Regards,

Ed

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top