Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: broken symlink stuff



On Jan 23, Niall Smart wrote
> 
>   find `pwd` -type l -follow 2>&1 >/dev/null | sed 's/.*link \(.*\): No such.*/\1/'

This can be done easier:

find `pwd` -type l -follow 2>>(sed 's/.*link \(.*\): No such.*/\1/')

No need for redirecting stdin to /dev/null ;-)

> niall

Thomas

-- 
  -- Thomas Köhler   Email:  jean-luc@xxxxxxxxxxxxxxxxx
          <><                     jean-luc@xxxxxxx
   IRC: jeanluc  Channels:  #star_trek #linuxger #ixthys #knf
             WWW: http://home.pages.de/~jeanluc/



Messages sorted by: Reverse Date, Date, Thread, Author