How i can delete whitespace in each line of file, using bash For instance, file1.txt. Before:
gg g gg g t ttt
after:
gg
tr
$ tr -d ' ' output.txt $ mv output.txt input.txt
sed
$ sed -i 's/^ *//' input.txt