Art Alexion on 13 Jun 2006 13:04:03 -0000


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

Re: [PLUG] printing directory tree


On Monday 12 June 2006 13:25, Jeff Abrahamson wrote:
> I know this is now solved, but there's a simple solution that wasn't
> mentioned:
>
>     find . -type d | perl -pwe 's|[^/]+/|   |g'
>
> Remove the "-type d" to get all files instead of just directories.
> Note the obvious extension to print id3 tags by having a function as
> the second element in the pipe, so that it prints the indent, the
> name, and then the id3 tag if there is one.

Jeff, is there a function you had in mind?
-- 

_____________________________________________________________
Art Alexion
Arthur S. Alexion LLC

PGP fingerprint: 52A4 B10C AA73 096F A661  92D2 3B65 8EAC ACC5 BA7A
The attachment - signature.asc - is my electronic signature; no need for 
alarm.
Info @ 
http://mysite.verizon.net/art.alexion/encryption/signature.asc.what.html
_____________________________________________________________

Attachment: pgpqA5CbgflHU.pgp
Description: PGP signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug