Quantcast
Channel: txt » sed
Viewing all articles
Browse latest Browse all 10

Delete Leading Whitespace Using Sed

$
0
0

Delete leading whitespace (spaces/tabs/etc) from beginning of each line. Same as yesterday’s command – but using sed


cat file.txt | sed -e 's,^ *,,'

Credit: Vivin


Viewing all articles
Browse latest Browse all 10

Trending Articles