Redirection


#1

sort deserts.txt | uniq > uniq-deserts.txt

We redirect the filtered and sorted content to uniq-deserts.txt , but in the files tree there is no such file named
uniq-deserts.txt . Is this new file created on its own?


#2

There should be, > will create a file, sure it is not there? You can list the files with ls

You can always use a find command:

find /home/ccuser/workspace -type f iname 'uniq-deserts.txt'