Re: The rename command…
- From: "Johnny Rosenberg" <gurus.knugum@xxxxxxxxx>
- Date: Tue, 26 Aug 2008 10:23:51 +0200
2008/8/25 Ulf Rompe <Ulf.Rompe@xxxxxxxx>
Sorry all for the previous, empty post.än den jag lyckades komma fram till via vild sökning på nätet:
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
Tack så mycket! Har inte testat än, men det ser ut som en vettigare lösning
find . -name "Länk till "* -exec rename -v "s/Länk till //" {} \;
My guess is that your solution might be a bit faster. IN my solution, both
find and rename look for the same thing, kind of…
As everyone can see, I'm a bash beginner but I learn all the time. I think
that my new knowledge of xargs will make me able to do things that I
couldn't before! Thanks again!
J.R.
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: The rename command…
- From: Johnny Rosenberg
- Re: The rename command…
- References:
- The rename command…
- From: Johnny Rosenberg
- Re: The rename command…
- From: Ulf Rompe
- The rename command…
- Prev by Date: Re: Rutebook
- Next by Date: Re: The rename command…
- Previous by thread: Re: The rename command…
- Next by thread: Re: The rename command…
- Index(es):
Relevant Pages
|