You can use the 'find' command and tell it to only process files of type
"symbolic link."
eg.:
find /tmp/ -type l -exec ls -l {} \;
which would start from the /tmp directory, look for symbolic links, and
execute "ls -l" on the filenames it finds. You could, of course, eliminate
the last part if you only wanted to know what the filenames were and get
find /tmp/ -type l
(I believe it's the same as using '-print' instead of '-exec [command]')
Beware of output to stderr (if you don't have permission to read a directory,
you'll get errors) getting interspersed.
Dave
On Mon, Oct 09, 2006 at 10:19:38AM -0500, Ray Shahan wrote:
> Hi all,
>
>
>
> The 'mpe-to-hp-ux' site states that there's no equivalent
> command in UNIX for our beloved LISTEQ command, however, I'd like to be
> able to see/understand what symbolic links are setup on our system, so
> is there some convenient way to do this in POSIX?
>
>
>
>
>
> TIA,
>
>
>
>
>
> <http://www.republictitle.com/>
>
> Ray Shahan
>
> Computer Programmer
> REPUBLIC TITLE OF TEXAS, INC. <http://www.republictitle.com/>
> 2701 W Plano Parkway
> <http://maps.yahoo.com/maps_result?addr=2701+w+plano+parkway&csz=75075&c
> ountry=us&new=1&name=&qty=>
> Plano, TX 75075
>
>
>
>
> direct 214.556.0202
> main 972.578.8611
> fax 972.424.5621
>
> www.republictitle.com <http://www.republictitle.com/>
>
> [log in to unmask]
>
>
>
>
>
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
--
+--David Oksner-----http://www.case.net/--+
|MURPHY'S LAW: |
| If anything can go wrong, it will. |
[log in to unmask]
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|