about summary refs log tree commit diff
path: root/sourcecodes/examplefilecopy.sh
blob: 600b0c01eff1c1eb49aa2f861363cdde400bc011 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
cd "$(dirname "$0")/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 /var/lib/genenet/bnw/$new
done