On Mon, Feb 13, 2012 at 09:50:08AM +0000, Chris Davies wrote:
> Joel Roth <jo...@pobox.com> wrote:
> > ./project1/bak/a.yml
> > ./project1/bak/b.yml
> > ./project2/bak/c.yml
> > ./project2/bak/d.yml
> 
> > I want to move the *.yml files into the corresponding parent directory.
> 
> rename 's!(.*/)([^/]*)$!$1../$2!' project*/bak/*.yml

Nice... I only just recently found out about rename, myself.
Very convenient.

 
> ;-)
> Chris

-- 
Joel Roth


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120214035609.GA2570@sprite

Reply via email to