"cat" command no output using Catalina, and "sort" not sorting.
I'm trying to sort a text file.
In the past, I've opened a Terminal window and issued the following command:
“cat jumbled.txt | sort > sorted.txt”
Now I get the following Error: "sort: illegal byte sequence"
Attempting to troubleshoot, I tried the command: cat jumbled.txt
which used to print the contents of the text file to the screen. BUT NOW I GET NO OUTPUT!
OK, let's try the "sort" command directly:
"sort jumbled.txt" here's my screen output:
R Ð5/04/2021guez08@gmail.comom
OK, so let's just try the "sort" command and redirect to a file.
"sort jumbled.txt > sorted.txt" yields a file ok, BUT IT'S NOT SORTED.
What's going on with the command line utilities?
THEY'RE USELESS in CATALINA
MacBook Pro