adding new file

This commit is contained in:
q
2012-11-13 19:54:04 +02:00
parent eeaef9ee49
commit 4865933d81
2 changed files with 55 additions and 0 deletions

16
conv1to2 Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
IFS=$'\n'
if [ -z "$1" ]
then echo give two strings
exit
fi
for file in $( ls | grep "$1" )
do mv -iv "$file" "$( echo $file | sed s/"$1"/"$2"/g )"
done
echo 'sure?'
read i
for file in $( ls | grep "$1" )
do echo mv -iv "$file" "$( echo $file | sed s/"$1"/"$2"/g )"
done