[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Stupid shell question

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

  I've got a directory structure like this:


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.

Reply to: