Remove Leading Whitespace Using Sed
February14
Sometimes a data file contains whitespace before the actual data. The following command will remove that whitespace.
1 | cat original_file.txt | sed -e 's,^ *,,' > new_file.txt |
Sometimes a data file contains whitespace before the actual data. The following command will remove that whitespace.
1 | cat original_file.txt | sed -e 's,^ *,,' > new_file.txt |