Remove numbers, spaces, line breaks & paragraphs from .txt on CLI
Hi everybody!
I am looking for a way to strip all non-letter characters (i.e. spaces, numbers, line breaks and paragraph breaks) from a .txt file using the terminal, so that afterwards the .txt file will be just a loooooooong single line of letters. I want to keep upper and lower case, though. Thank you in advance for any help! rokyo |
"man tr"
Can be achieved with a single invocation. |
I would look at tr or sed for that. It is easy in either. Try tr first as it is simpler.
|
Thanks, tr worked perfectly with:
Code:
tr -cd [:alpha:] < test.txt > test_processes.txt |
All times are GMT -5. The time now is 04:26 AM. |