about summary refs log tree commit diff
path: root/sourcecodes/filecopy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/filecopy.sh')
-rw-r--r--sourcecodes/filecopy.sh11
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