Artificial intelligent assistant

Linux Bulk file renaming at specific position I want to rename all the files in the directory at specific position. Original File sample Names: neif11_fastcredit_20190629101333.txt neif11_fastcredit_20190629101334.txt neif11_fastcredit_20190629101335.txt neif11_fastcredit_20190629101336.txt neif11_fastcredit_20190629101337.txt I want to rename it like: neif11_fastcredit_20191129061333.txt neif11_fastcredit_20191129061334.txt neif11_fastcredit_20191129061335.txt neif11_fastcredit_20191129061336.txt neif11_fastcredit_20191129061337.txt File name Understanding: `neif11_fastcredit_2019` should remain as is the next part is month and date **[MMDD]**`0629` which I want to update to `1129` as today's date and last part is **HHMMSS** which also remain unchanged. Need help as I am new to Linux.

If you do not have `rename` available, you can try the following (Bash) loop which uses `sed`:


user@host$ for FILE in *.txt; do NEWNAME=$(sed 's/_20190629/_20191129/' <<< "$FILE"); mv "$FILE" "$NEWNAME"; done


Note that this requires Bash. If you have another shell, you will have to resort to something like


user@host$ for FILE in *.txt; do NEWNAME=$(echo "$FILE" | sed 's/_20190629/_20191129/'); mv "$FILE" "$NEWNAME"; done


Also note that this assumes the filenames are "reasonably well-behaved", so special characters (not part of your example) may cause this to fail.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 3843857136215b673f89678577fee7c2