Answer the question
In order to leave comments, you need to log in
How to search for a file in a folder and replace a character in the name?
There is, say, a bunch of files (> 80) of the form:
american-nut-520x300.jpg
american-nut-620x300.jpg
american-nut-750x400.jpg
american-nut-80x80.jpg
american-nut-900x300.jpg
american-nut-908x1024.jpg
american-nut-
960x250.jpg -nut-960x460.jpg
american-nut-960x570.jpg
american-nut.jpg
Answer the question
In order to leave comments, you need to log in
Here is the text of the script:
#!/usr/bin/env bash
for fname in `ls`; do
new_name=`echo $fname | sed s/й/и/g`
mv $fname $new_name
done
chmod +x do.sh
and run in the directory with the ./do.sh
.
or you can use something like https://apps.ubuntu.com/cat/applications/precise/s...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question