4 ms·How many people actually use shell redirection to copy and filter a file?by zaphar 17y agoHow many people actually use shell redirection to copy and filter a file?orborde 17y agoI do it all the time. Is there a better way? I'd love to hear it.nathanb 17y agocat filename | filter > newfilebarrkel 17y agoThe point is that if filename and newFile are the same file, then this will overwrite the contents before they are read in by cat.orborde 17y agoHow is this different, besides its completely unnecessary use of cat?gkelly 17y agoI think the requirements are that the entire process is atomic and preserves file attributes.