[gentoo-user] Removing broken symbolic links
Hello. What is an easy way of finding and removing broken links in a given directory? Romildo -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Removing broken symbolic links
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 find . -type l | while read ln; do if [ \! -s $ln ];then echo $ln; fi; done - --Erik On Friday 04 July 2003 22:06, [EMAIL PROTECTED] wrote: > Hello. > > What is an easy way of finding and removing broken > links in a given directory? -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/BdSNds9m9uhAobARAsdRAJ0UJ9THxcyHlhEjjraGwnqdXItpqACgjj5o TNk+xaM47PmEGG0J9MzVY/Y= =6Ocs -END PGP SIGNATURE- -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Removing broken symbolic links
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