That's the caret notation for the form feed character. With the GNU implementation of sed
, you can remove it using its octal value, \o14
:
sed 's/\o14//g' file
You can also use its escape code:
sed 's/\f//' file
Such characters can be entered in the terminal by pressing CtrlV and then the code for the character. In this case, CtrlL. So, type this:
sed 's/
Then, hit CtrlV and then CtrlL:
sed 's/^L
Now, complete the command:
sed 's/^L//g' file
Don't write ^L
and don't paste it from the above, use the keyboard shortcut I gave.
You could also remove it with tr
:
tr -d '\f' < file
Or perl
:
perl -pe 's/\f//g' file
To delete both the \f
and any blank lines following it, you could do something like:
perl -0pe 's/\f\s*/\n/s' file
\014
.\013
is VT (vertical tab). L is the 12th letter of the English alphabet (14 in octal). – Stéphane Chazelas Jul 31 '15 at 9:23