Trying to pipe commands and redirect to a second output file.
Individually, I can operate the following command lines and I get the correct sorted file.
cut -c 63-69 Data.txt >T_DAILY_AVG.txt
sort <T_DAILY_AVG.txt >T_DAILY_AVG_sorted.txt
However, when I attempt to pipe the commands together, I get the correct T_DAILY_AVG.txt file but the T_DAILY_AVG_sorted.txt returns empty. This is the command line I am attempting to use.
cut -c 63-69 Data.txt >T_DAILY_AVG.txt | sort <T_DAILY_AVG.txt >T_DAILY_AVG_sorted.txt