I want to rename all the files in a folder which starts with 123_xxx.txt to xxx.txt.
123_xxx.txt
xxx.txt
For example, my directory has:
123_xxx
find -name "123*.txt" -exec rename 's/^123_//' {} ";"
will do it. No AWK, no for, no xargs needed, but rename, a very useful command from the Perl lib. It is not always included with Linux, but is easy to install from the repos.