in reply to Unix shell ls vs readdir

Uhm, if you're just interested in the file names, why use "ls -l", then throw everything away the "-l" adds? Why not just a plain "ls"?

Replies are listed 'Best First'.
Re^2: Unix shell ls vs readdir
by almut (Canon) on May 10, 2010 at 18:59 UTC
    Why not just a plain "ls"?

    Plain ls doesn't show the link target the OP is grepping for...

Re^2: Unix shell ls vs readdir
by Argel (Prior) on May 10, 2010 at 19:03 UTC
    It looks like he is using the '->' from the ls -l output to figure out which files are symbolic links pointing to tomcat.

    Elda Taluta; Sarks Sark; Ark Arks