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/examplefilecopy.sh | |
| parent | 57ebf49403b75dcf8482d174b59f7fd2a961d98e (diff) | |
| download | BNW-c4f926438dcb8abe805e910399940f79ff643c4b.tar.gz | |
Add files via upload
Diffstat (limited to 'sourcecodes/examplefilecopy.sh')
| -rw-r--r-- | sourcecodes/examplefilecopy.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sourcecodes/examplefilecopy.sh b/sourcecodes/examplefilecopy.sh new file mode 100644 index 00000000..cd49d670 --- /dev/null +++ b/sourcecodes/examplefilecopy.sh @@ -0,0 +1,11 @@ +#!/bin/bash +cd ./data/$1/ +FILES=$2* +for f in $FILES +do + echo "Processing $f file..." + new=${f//$2/$3} + # 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 |
