How can I use
mv commands to manipulate files saved to a list, for example one made like so:
ls Downloads/ | grep example > example.tmp
The point is to be able to view/edit the file list in a file editor before making a final manipulation, and then deleting the tmp.
So for example, the following does not work:
mkdir example_dir && cp -t example_dir < example.tmp
Is there a way that I could make this work?
Once I get that down, I'd like to simplify the whole process into fewer commands, but... I'm just trying to make it work (and see how it will work at this individual step) first.