On 12/02/12 23:55, Joel Roth wrote:
Hi Shellsters,

  I've got a directory structure like this:

./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.

I tried this:

for dir in `find -maxdepth 1 -type d`; do chdir $dir/bak; mv *.yml .. ; chdir 
../..; done

But get an error:

mv: can't stat *.yml

mv */bak/*.yml .

--
Chrissy Jackson
Shadowcat Systems Ltd.


--
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/4f3be009.5030...@shadowcat.co.uk

Reply via email to