I am trying to match all blank (including null) lines in a text file. Using sed the regular expression is:
/^[<SPACE><TAB>]*$/
which should match 0 or more occurrences of a space or tab followed by the end of line. I have even seen this expression quoted - a colleague has used the same expression in an ex command in vi and both of us cannot get it to work.
Any ideas?
This conversation is currently closed to new comments.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Matching blank lines
/^[<SPACE><TAB>]*$/
which should match 0 or more occurrences of a space or tab followed by the end of line. I have even seen this expression quoted - a colleague has used the same expression in an ex command in vi and both of us cannot get it to work.
Any ideas?