Before:
eng-vshakya:scripts vshakya$ ls American Samoa.png Faroe Islands.png Saint Barthelemy.png
After:
eng-vshakya:scripts vshakya$ ls AmericanSamoa.png FaroeIslands.png SaintBarthelemy.png
Tried the prototype below, but it doesn't work :( Sorry, not very good when it comes to awk / sed :(
ls *.png | sed 's/\ /\\\ /g' | awk '{print("mv "$1" "$1)}'
[Over the prototype, the real team, I think, would be:
ls *.png | sed 's/\ /\\\ /g' | awk '{print("mv "$1" "$1)}' | sed 's/\ //g'
]
source share