script to organize files
I have thousands of files that I would like to organize into project directories automatically.
I have a “file metadata table” as a tabulated text file with two columns: (1) file name, (2) project the file belongs to. How can I easily execute:
- make a directory per project name
- mv files to corresponding directory according to metadata
I believe this is something super easy to script for people that do this routinely. I’ve tried writing something in bash and perl but without success.
Following this operation my goal is to have another script navigate each directory and run a bioinformatic pipeline.
Thank you very much!
• 41 views
Read more here: Source link