1

I have a bunch of directories (e.g., drawable-hdmi, drawable-en-hdmi, drawable-en-xhdmi) and so on for different resolutions and localisations. each of them contain just one file with a random name. How can I rename those files with a command to to new_begingn.9.png?

1 Answer 1

2

Use find with mv:

find drawable-hdmi drawable-en-hdmi drawable-en-xhdmi -type f -exec mv {} new_begingn.9.png \;

If all the folders are named drawable-<something>, you can do:

find drawable-* -type f -exec mv {} new_begingn.9.png \;

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .