The rename command…

Rashkae ubuntu at tigershaunt.com
Wed Aug 27 20:23:53 UTC 2008


Johnny Rosenberg wrote:
> 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…)
> 

` very much has a special meaning, completely different from '

` ` means to susbstitute what's inside of the quotes with the output the
commands contained within.




More information about the ubuntu-users mailing list