about summary refs log tree commit diff
path: root/sourcecodes/examplefilecopy.sh
blob: b10aca422e369a4de0650d0408e18cb097235f99 (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 /var/lib/genenet/bnw/$new
done