5 ms·
cat filename | filter > newfile
cat filename | filter > newfile
The point is that if filename and newFile are the same file, then this will overwrite the contents before they are read in by cat.
How is this different, besides its completely unnecessary use of cat?