Hello. Help, please, with the code) It is necessary to change the names in the current directory to text (i) well, depending on how many of them .. just if you change them for one, they will be overwritten!
So I wrote something similar to the code. Could you help me finish it) It is only important not to touch the file where the script itself is located! This is the file "xls" Thank you so much)
ls | while read x do if [ $x != xls ] ; then echo $x | grep '^[AZ]' echo $x | grep '^[az]' if [ $? -eq 0 ] ; then y=`echo $x | sed 's/[AZ]/text'` y=`echo $x | sed 's/[az]/text'` mv $x $y fi fi done