Say a file called abc exists in the current directory and it has some text in it. When you execute the command:
cat abc > abc
Why do the contents of the the file abc disappear?
Why does the command delete the text in it and the file becomes an empty file?
cutchange a file in place? – Gilles 'SO- stop being evil' Aug 29 '16 at 17:48cat abc | dog abc– joeytwiddle Aug 30 '16 at 03:22tee. – Andrea Lazzarotto Aug 30 '16 at 10:14