about summary refs log tree commit diff
path: root/sourcecodes/examplefilecopy.sh
blob: d99865f7e942f4fc3b2946dcd7ca9f2640eb7338 (plain)
1
2
3
4
5
6
7
8
9
10
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 /tmp/bnw/$new
done