Return to Snippet

Revision: 7539
at July 29, 2008 04:07 by retry


Initial Code
$ cat file.txt | sed -e 's/^[ \t]*//'

Initial URL

                                

Initial Description
This one-liner will remove all leading whitespace (including tabs) from a text file and write the output to STDOUT.

Initial Title
Remove leading whitespace from a text file

Initial Tags

                                

Initial Language
Other