12 lines
169 B
Bash
12 lines
169 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
echo "Changing all files with .txt to .text"
|
||
|
x=`find . -type f -iname "*.txt"`
|
||
|
for i in $x;do
|
||
|
j=`echo "$i" | cut -d '.' -f 2`
|
||
|
echo $j
|
||
|
mv $i ./$j.text
|
||
|
done
|
||
|
|
||
|
|