12 lines
169 B
Bash
Raw Permalink Normal View History

2025-01-17 10:49:57 +05:30
#!/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