Hey guys,
Please forgive the n00bishness of the query, and don't slate me too much if you can restrain yourselves.
I have a list of files (one per line) in a text document, that I need to copy from a portable drive to our internal RAID.
I was told to use this command:
for i in `cat H_S_ALL_CLIPS`; do cp $i /path/to_destination/ ; done
My understanding of this would be that:
The H_S_ALL_CLIPS is the text file. Im ok with that part.
The /path/to/destination is "path to destination" i.e. where I want the files to go.
Now I've tried a couple of times to make this work, but the initial thought for me was that "path" was where the files are and "to_destination" is where I want them to go... I've looked around on a couple of forums but everyone seems to talk about this within the context of knowing what they are doing when it comes to this kind of thing...and I don't.
Anyway if someone could give me some assistance I'd appreciate it. I'm using Terminal in OSX if that makes a difference.
Cheers,
Dave.
Please forgive the n00bishness of the query, and don't slate me too much if you can restrain yourselves.
I have a list of files (one per line) in a text document, that I need to copy from a portable drive to our internal RAID.
I was told to use this command:
for i in `cat H_S_ALL_CLIPS`; do cp $i /path/to_destination/ ; done
My understanding of this would be that:
The H_S_ALL_CLIPS is the text file. Im ok with that part.
The /path/to/destination is "path to destination" i.e. where I want the files to go.
Now I've tried a couple of times to make this work, but the initial thought for me was that "path" was where the files are and "to_destination" is where I want them to go... I've looked around on a couple of forums but everyone seems to talk about this within the context of knowing what they are doing when it comes to this kind of thing...and I don't.
Anyway if someone could give me some assistance I'd appreciate it. I'm using Terminal in OSX if that makes a difference.
Cheers,
Dave.