On Fri, Jul 04, 2003 at 10:25:00PM +0300, Erik S. Johansen wrote:
> 
> find . -type l | while read ln; do if [ \! -s $ln ];then echo $ln; fi; done
> 
> On Friday 04 July 2003 22:06, [EMAIL PROTECTED] wrote:
> >
> > What is an easy way of finding and removing broken
> > links in a given directory?

Thanks for the tip.

Just a small question: is there any reason to escape the
negation operator (\!) of the test?

Romildo
-- 
Prof. José Romildo Malaquias        [EMAIL PROTECTED]
Departamento de Computação       [EMAIL PROTECTED]
Univ. Federal de Ouro Preto  http://uber.com.br/romildo

--
[EMAIL PROTECTED] mailing list

Reply via email to