Sep 22, 2003 #1 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.
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 Joined Nov 13, 2002 Messages 187 Location US "strings -1 <file>" would probably work. Upvote 0 Downvote
Sep 22, 2003 #3 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location 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 Joined Oct 27, 1998 Messages 1,065 Location 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