Nick W wrote:
because I'm lazy, how would one write a script to recursively rm files ending in '~' starting at any given dir?

find $dir -type f -name \*~ -exec rm -f \{\} \;





On Tuesday 31 May 2005 04:24, Gerald Humphreys wrote:

Good day everyone.

Please can someone show me an example of looking if there are any files
and/or sub directorys in a directory, using a script. #!/bin/sh



_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying


--
William Astle
finger [EMAIL PROTECTED] for further information

Geek Code V3.12: GCS/M/S d- s+:+ !a C++ UL++++$ P++ L+++ !E W++ !N w---
!D !M PS PE V-- Y+ PGP t+@ 5++ X !R tv+@ b+++@ !DI D? G e++ h+ y?

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to