I have a bunch of texts files although they all have spaces at the beginning of lines
e.g.
testing 123
download
upload
would be
testing 123
download
upload
Preferably using a utility such as grep etc.
I have a bunch of texts files although they all have spaces at the beginning of lines
e.g.
testing 123
download
upload
would be
testing 123
download
upload
Preferably using a utility such as grep etc.
You can use sed
sed 's/^ *//' file
This should work with Linux and your GNUWin Toolkit.
echo " Line starting with spaces" | sed 's/^[ \t]*//'
perl -pi -e 's/^\s+//' yourfilenamehere