script to rename muliple files
helloo,
I downloaded some files using wget and i got thier names starting with "index.php?dir=" how can i remove them in one single script? |
There's the rename command with a syntax like rename from to file. An example from the man page is rename .htm .html *.htm. You'd probably have something like:
Code:
rename 'index.php?dir=' '' * |
hi,
no it not worked. see what i want is if filename starts with index.php?dir=abcd?=&pqrxbook1.pdf then i want that file to be renames to book1.pdf only |
Did you try it this way?
Code:
$ ls -l |
All times are GMT -5. The time now is 06:49 AM. |