Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: listing only symlinks?

  1. #11
    Join Date
    Jan 2008
    Location
    N40 44.977 W073 59.356
    Posts
    1,170

    Default Re: listing only symlinks?

    Topic has been moved to the Application forum.

  2. #12
    Kevin Nathan NNTP User

    Default Re: listing only symlinks?

    On Fri, 04 Jul 2008 01:56:03 GMT
    69 rs ss <69_rs_ss@no-mx.forums.opensuse.org> wrote:

    >
    >Topic has been moved to the Application forum.
    >
    >


    Thanks! Guess I need to add that one, too. :-)


    --
    Kevin Nathan (Arizona, USA)
    Linux is not a destination, it's a journey -- enjoy the trip!

    Linux 2.6.22.18-0.2-default
    7:46pm up 15:25, 21 users, load average: 0.24, 0.40, 0.42


  3. #13
    Kevin Nathan NNTP User

    Default Re: listing only symlinks?

    On Thu, 03 Jul 2008 19:46:04 GMT
    Magic31 <Magic31@no-mx.forums.opensuse.org> wrote:

    >
    >outsider787;1832151 Wrote:
    >>
    >> I found that
    >> ls -al | grep "^l"
    >> also works to do the same job.

    >That probably is the official way
    >
    >


    If you make that an alias (for less typing) it will only work if you
    are *in* the directory -- it won't work if you want a listing from a
    different directory. For that, I have this function in my .alias file
    (in my home directory):

    function showsym {
    ls -la $@ | egrep "^l"
    }

    along with all my favorite aliases. Then, in the .bashrc file I call it
    like this:

    test -s ~/.alias && . ~/.alias || true

    so it is loaded when bash starts . . .

    (Actually, I use a little different grep expression, but that's for
    another discussion!)


    --
    Kevin Nathan (Arizona, USA)
    Linux is not a destination, it's a journey -- enjoy the trip!

    Linux 2.6.22.18-0.2-default
    7:51pm up 15:30, 21 users, load average: 0.33, 0.47, 0.45


  4. #14
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,774

    Default Re: listing only symlinks?

    Quote Originally Posted by outsider787 View Post
    That clarifies it.
    Thanks.

    I found that
    ls -al | grep "^l"
    also works to do the same job.
    Of course it does, but the important thing is: do you know why?
    Henk van Velden

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •