10-04-04 11:01 PM
2004-10-2, 13:53(-07), Gabriella:
> I would like to shorten file name from search?q=opq to opq. For one
> file, I did mv command and it works. The question now: how to shorten
> the name of many files at the same time.
> list of files:
> search?q=opq
> search?q=odf
> search?q=kjl
> etc
>
> output
> opq
> odf
> kjl
If your shell is zsh (4.0 or above):
autoload -U zmv
zmv 'search\?q=(*)' '$1'
--
Stephane
[ Post a follow-up to this message ]
|