Try this snippet to get rid of the extra stuff:

for f in $(find . -name ".*" -maxdepth 1); do
   echo "$f --> ${f#./}"
done

Alternatively, use the full directory name:

for f in $(find $(pwd) -name ".*" -maxdepth 1); do
   echo $f
done

HTH,

Hendrik Schaink


Robert Lewko wrote:
> On June 17, 2005 10:31 am, Shawn wrote:
> 
>>Thanks Rob.
>>
>>When I tried your command, I get a listing of directories that look
>>something like so:
>>
>>./.maildir
>>./Desktop
>>
>>There are two minor issues with this.  First, I don't want the ./ part, and
>>second, I don't want to see the hidden directories.  I'll dig into the find
>>command more though - I'm sure it could do this with a little tweaking...
>>
>>Thanks for the lead.
>>
> 
> 
> I guess I didn't see that.  You can probably filter the file names with a 
> tool 
> like sed.
> 
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying

-- 
Hendrik M. Schaink
Chief Consultant

"Integrated Business Solutions & Dependable Service"

InfoVision Consulting
Calgary, Alberta, Canada
Phone: (403) 239-0099


"The Vision: We are the partners of choice for companies and
organizations that share our commitment to creating a world
that is truly wise, courageous, prosperous, innovative,
inclusive, sustainable and humane."     --Ruben Nelson

GPG Fingerprint: 1371 0927 8C3C 831F A838 C312 68BC F5DB 010D F3D7

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to