Move files in a list...
I hope this is the correct forum to ask my question...
I have to work with a bunch of files but those files are named in a...stupid way. Fortunately I'm able to list all files with certain parameters in a list, but what I want to do now is to move only the files which are mentioned in such a list to another directory.
Is there a bash command which can do this? To move only the files mentioned in a list?
Why not move directly without creating a list using wildcards? Would that be a solution?
mv ./*stupid_name*.txt ./folder
Well, thats the reason why I ask this question in the first place. The files have different parameters which are not reflected in their names...
say you have files named like this:
but only a subgroup of them belongs together. Its possible for me to create lists of all files with one particular parameter, but not moving them with wildcards because of the filenames...
Please give another example of these parameters, I'm thinking no matter how you create that list (if it's with bash) you should be able to use that as the source part for mv.
Ok I will stop tormenting you, there is another option. Look at the following script:
|All times are GMT -4. The time now is 11:49 PM.|
Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.