Batch rename file which end which ‘n’

  Kiến thức lập trình

One line on terminal works
“mv -f ‘g/q/q/X/dlWOk6u0HsKuwnh_935qCeKmwnQaAXGQgxgXqqg-0-300.jpg’$’r’ g/q/q/X/dlWOk6u0HsKuwnh_935qCeKmwnQaAXGQgxgXqqg-0-300.jpg”

mulitple line on batch file test.sh doesn’t works

mv -f ‘g/q/q/X/dlWOk6u0HsKuwnh_935qCeKmwnQaAXGQgxgXqqg-0-300.jpg’$’r’ g/q/q/X/dlWOk6u0HsKuwnh_935qCeKmwnQaAXGQgxgXqqg-0-300.jpg

mv -f ‘g/q/q/X/dlWOk6u0HsKuwnh_935qCeKmwnQaAXGQgxgXqqg-0-60.jpg’$’r’ g/q/q/X/dlWOk6u0HsKuwnh_935qCeKmwnQaAXGQgxgXqqg-0-60.jpg

Error:

mv: cannot stat ‘A/_/B/p/dwtOk6NgtATRcr5P6hjOSdMmIGShEYltK2SpB_A-0-300.jpg$r’: No such file or directory

many file end with “n”, then can’t apear on web.

New contributor

user25083901 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT