Sep 22, 2003 #1 vergeb MIS Sep 22, 2003 8 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.
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.
Sep 22, 2003 #2 Wonboodoo MIS Nov 13, 2002 187 US "strings -1 <file>" would probably work. Upvote 0 Downvote
Sep 22, 2003 #3 PHV MIS Nov 8, 2002 53,708 FR Try something like this: Code: tr -d '\f' <InputFile >FileWithoutFF[/oce] Hope This Help PH. Upvote 0 Downvote
Sep 22, 2003 #4 olded Programmer Oct 27, 1998 1,065 US Hi: You can probably get the sed version to work by embedding the octal value of ^L in sed: # untested sed 's/'"$(printf '\0145')"'//g' Regards, Ed Upvote 0 Downvote
Hi: You can probably get the sed version to work by embedding the octal value of ^L in sed: # untested sed 's/'"$(printf '\0145')"'//g' Regards, Ed