i was watching a tutorial about using unix utilities the guy was using it on a MAC i had a windows laptop so i downloaded Gnuwin32 Package then came a part where i want to replace any non letter character in a file with a newline "\n"
the command line in the tutorial was :
tr -sc 'A-Za-z' '\n' < filename.txt |less
it worked with him but when i tried it it put a singleqoute "'" character after character
'S'h'a'k'e's'p'e'a'r'e'T'H'E'T'E'M'P'E'S'T'f'r'o'm'O'n'l'i'n'e'L'i'b'r'a'r'y'o'f'L'i'b'e'r't'y'h't't'p'o'l'l'l'i'b'e'r't'y'f'u'n'd'o'r'g'
i tried
tr -sc "A-Za-z" "\n" < filename.txt |less
it added a new line after each character
n
e
L
i
b
r
a
i tried to remove the compliment option and add ^ in the regex
tr "[^A-Za-z]" "\n" < filename.txt |less
the result was replacing every letter
with a newline
the Question is does Command line options in UNIX utilities of GNUwin32 differ than others ? and does putting the regex between single quotes like 'A-Z' differ than "A-Z" and if so what would be the best answer to replace every non-letter character with a newline , other than the failed trials above