[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use of wildcard function recursively
From: |
Chris Chiasson |
Subject: |
Re: use of wildcard function recursively |
Date: |
Mon, 27 Mar 2006 23:18:38 -0600 |
ended up using
find . -name "*" -type d | while read f; do mv "$f" `echo "$f" | sed
's/ /_/g'`; done
a few times (to affect subdirectories underneath directories with
spaces in their names)... wonder if there is a "leaves first" option
to find...
Thanks again,
On 3/27/06, Paul D. Smith <address@hidden> wrote:
> %% "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
>
--
http://chris.chiasson.name/
- Re: use of wildcard function recursively, (continued)
Re: use of wildcard function recursively, John Graham-Cumming, 2006/03/16
- Re: use of wildcard function recursively, Chris Chiasson, 2006/03/27
- Re: use of wildcard function recursively, Chris Chiasson, 2006/03/27
- Re: use of wildcard function recursively, Paul D. Smith, 2006/03/27
- Re: use of wildcard function recursively, Aditya Kher, 2006/03/27
- Re: use of wildcard function recursively, Chris Chiasson, 2006/03/27
- Re: use of wildcard function recursively, Paul D. Smith, 2006/03/27
- Re: use of wildcard function recursively,
Chris Chiasson <=
- Re: use of wildcard function recursively, Paul D. Smith, 2006/03/28
Re: use of wildcard function recursively, Paul D. Smith, 2006/03/27