help-make
[Top][All Lists]
Advanced

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

Re: use of wildcard function recursively


From: Paul D. Smith
Subject: Re: use of wildcard function recursively
Date: Mon, 27 Mar 2006 22:23:50 -0500

%% "Chris Chiasson" <address@hidden> writes:

  cc> Thank you. Since I intend to stick with make:
  cc> Does anyone have a utility script (that could be adapted) to
  cc> mass-sanitize some jpg files?

Here's a one-liner in basic Bourne shell:

  find . -name \*.jpg | while read f; do mv "$f" `echo "$f" | sed 's/ /-/g'`; 
done

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]