[X-Unix] script: setting directory ownership to the name of that directory ?

Rod Buchanan lists at sofstats.com
Mon Aug 15 05:42:19 PDT 2005


On 8/14/05 10:02 AM, "macosxforme" <macosxforme at gmail.com> wrote:

> for i in `ls`; do

This will do the same thing

    for i in *; do

and you won't need to worry about overflowing the command-line buffer.  The
shell will expand '*' to all files/directories in the current directory.

-- 
Rod

"I have a 72-hour rule. If I stay in Washington for more than 72 hours, I
have to bathe myself in the same stuff I use when one of my dogs gets into a
fight with a skunk -- stuff to get the smell out."
-- Gov. Brian Schweitzer, Montana



More information about the X-Unix mailing list