Is there a way to batch copy/move files in unix? I thought it might be an option for cp/mv but I can't find any way to do it.
|
|
|||
|
If I understood your purpose correctly, you have extracted files like:
and want to move all files into the parent directory such that it looks like:
Using shell wildcards, assuming that you are in the directory
I've mentioned
and want to move all files in one directory (say,
This assumes that all filenames are unique, otherwise files would get overwritten. |
|||
|
|
cpandmvare pretty good choices. What additional features do you need? For renaming, see unix.stackexchange.com/q/1136/8250 – Lekensteyn May 6 '12 at 17:47cpormv? – Mat May 6 '12 at 18:39