Re: The rename command…
Johnny Rosenberg
gurus.knugum at gmail.com
Wed Aug 27 20:14:55 UTC 2008
2008/8/27 Ulf Rompe <Ulf.Rompe at icem.com>
> On Mi, 2008-08-27 at 17:44 +0200, Ulf Rompe wrote:
> > You may well do it with mv instead of rename:
> >
> > find . -name "Link to *" | while read name; do mv "$name" "`echo $name |
> sed -e "s/Link to //"`"; done
>
> ...at least if you replace the inner pair of double quotes with single
> quotes...
>
> [x] ulf
No, it worked the way you did.I tried both and it worked in both cases.
Does ` have a special meaning? I tried to replace it with something else,
such as ', but got errors. It looks unnecessary to have this construction (
<blah blah> "`<more blah blah>`" <even more stuff here> - it looks like
either " or ` can be omitted, but it can't; I've tried…)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080827/af7d9645/attachment.html>
More information about the ubuntu-users
mailing list