Hello and thanks for reading!
I have list like that:
user@laptop:~/lol$ find ./ \( -iname 'latest*' \) -type f -printf "%p\n"
/leagueoflegends/images/e/e6/CaitlynSquare.png/revision/latest?cb=20150402215548
/leagueoflegends/images/e/ef/WillumpSquare.png/revision/latest?cb=20150402222523
/leagueoflegends/images/d/d8/MorganaSquare.png/revision/latest?cb=20150402220702
/leagueoflegends/images/d/d1/UdyrSquare.png/revision/latest?cb=20150402221631
(its longer) and I want to copy each image ("latest?cb=20150402221631" are png images) to another folder and rename it for the name of 2 level up directory, like this:
latest?cb=20150402221631 --> to --> UdyrSquare.png
And if its possible, remove Square.
latest?cb=20150402221631 --> to --> Udyr.png