I have a lot of csv files that I want to classify according to their filename in different folders.
- Files called
*lefto.csv
will be saved in a folder calledlefto
- Files called
*righto.csv
will be saved in a folder calledright
- Files called
*sagital.csv
will be saved in a folder calledsagittal
- Files with names not obeying any previous condition, will be saved in a folder called
animals
So far I have been using the mv
command, but I would like to make a loop.