Merge branch 'master' of git.ucc.asn.au:/matches/honours
[matches/honours.git] / research / transmission_spectroscopy / test.sh
1 #!/bin/bash
2 pattern='C:\Documents and Settings\Positron Lab\Desktop\19-1-12\data_files1\processed\'
3 replace='../'
4 file=$1
5 tmpfile="${TMPDIR:-/tmp}/$( basename "$file" ).$$"
6 while read line
7 do
8   echo ${line/$pattern/$replace}
9 done < "$file" > "$tmpfile" && mv "$tmpfile" "$file"

UCC git Repository :: git.ucc.asn.au