blob: 4c7e33e1b44c80ed909284cf606e08c7323bec69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
cd $1
files=`ls`
for file in $files
do
sed 's/libvector/volk/g' < $file > tempfile
sed 's/LIBVECTOR/VOLK/g' < tempfile > $file
done
for file in $files
do
echo $file > tempfile
newfile=`sed 's/libvector/volk/g' < tempfile`
if (test "$file" != "$newfile"); then
mv $file $newfile
echo "changed $file to $newfile"
fi
done
|