I have a text file that has a space before the line. How do I delete it using tr
(or the correct command)?
For example, I have this:
Text
I would like this:
Text
But, how do I do that for a 200 line text file?
I currently have this pipeline:
cat file.txt | tr -s " " | tr -d ","
The other tr
commands are for removing other aspects of the text files.