Hi,
I am having a files in my directory like this:
Code:
2014 1049_file1.txt
2014 1050_file2.txt
2014 1110_file3.txt
2014 1145_file4.txt
2014 2049_file5.txt
I need to replace the above file names like this without changing the content of filename:
Code:
file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
I tried something like this but didn't workout:
Code:
for i in *.txt
do
mv $i ${*_i}
done