The rename command…

Ulf Rompe Ulf.Rompe at icem.com
Mon Aug 25 14:41:38 UTC 2008


Sorry all for the previous, empty post.

On Mo, 2008-08-25 at 16:00 +0200, Johnny Rosenberg wrote:
> Since there is a serious bug in Nautilus, that adds the very
> unnecessary text "Link to " to a link created with Ctrl+Shift
> +Drag&Drop,

I don't think it's a serious bug. I would call it bad design. :-)

> rename -v 's/Link to //' *
> 
> However, there doesn't seem to be an option for recursivity built in
> to that command. I am not good with scripts, but I am sure there is a
> way around that.

find . -type l -print0 | xargs -0 rename -v 's/Link to //'

[x] ulf 

-- 
Your eyes are weary from staring at the Monitor. You feel sleepy. Notice
how restful it is to watch the cursor blink. Close your eyes. The
opinions stated above are yours. You cannot imagine why you ever felt
otherwise.





More information about the ubuntu-users mailing list