confusing behaviour of a command
command cat 1.txt>1.txt leaves the file 1.txt blank because shell first opens the target file then execute the command, here shell overwrite the file 1.txt which is treated as new file.
if that is so then the output of this command should also be same
but result is not same. Please explain this, and correct me if i am wrong.