script to copy files
hi all,
trying to write script that will copy all files from one directory to another directory one by one (don’t use Code:
cp * /another/directory/ and prompt if any errors example if another directory dont exist, or trying to copy files that already are there. I managed to list all files and check if they exist or not but how can I change it so script will copy one file at a time and display each copied file in separate lines: Quote:
|
I would use cpio, just to be different.
Code:
|
that would be handy but I dont want to use cp...
another issue arrived, I thought I can use counter for copying files (if its good idea help me with it :) ) if not just suggest something else: when I use these code: Code:
#!/bin/bash does that make sense? |
You seem to keep saying:
Quote:
Code:
cp $file $dest/${file}1 |
All times are GMT -5. The time now is 11:01 AM. |