diff options
| author | ziejd2 | 2017-09-14 15:39:41 -0500 |
|---|---|---|
| committer | ziejd2 | 2017-09-14 15:57:50 -0500 |
| commit | c4f926438dcb8abe805e910399940f79ff643c4b (patch) | |
| tree | 3146d05ada5cf4b48d9bdd16c1baa498e8df7192 /sourcecodes/filecopy.sh | |
| parent | 57ebf49403b75dcf8482d174b59f7fd2a961d98e (diff) | |
| download | BNW-c4f926438dcb8abe805e910399940f79ff643c4b.tar.gz | |
Add files via upload
Diffstat (limited to 'sourcecodes/filecopy.sh')
| -rw-r--r-- | sourcecodes/filecopy.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sourcecodes/filecopy.sh b/sourcecodes/filecopy.sh new file mode 100644 index 00000000..15ce4e24 --- /dev/null +++ b/sourcecodes/filecopy.sh @@ -0,0 +1,11 @@ +#!/bin/bash +cd ./data/ +FILES=$1* +for f in $FILES +do + #echo "Processing $f file..." + new=${f//$1/$2} + # take action on each file. $f store current file name + #echo "new Processing $new file..." + cp $f $new +done \ No newline at end of file |
