/ Published in: Other
![](/img/icon_sav.png?v3)
This one-liner will remove all leading whitespace (including tabs) from a text file and write the output to STDOUT.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$ cat file.txt | sed -e 's/^[ \t]*//'
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)