Shell Script to Rename an Image File To the Directory Name
I am having an Image File placed in a Directory:
"/root/Desktop/my test dir/image.jpg"
I need to rename the Image File as follows (using some shell script):
image.jpg => "my test dir.jpg"
Note: There is only a Single Image File in this Directory
Can somebody please give me some hint?
Thanks.
No comments:
Post a Comment