Quick scripting question

Miner, Jonathan W (CSC) (US SSA) jonathan.w.miner at baesystems.com
Mon Oct 8 11:43:12 UTC 2007


 

	-----Original Message----- 
	From: fedora-list-bounces at redhat.com on behalf of Chris 
	Sent: Sat 10/06/2007 01:41 PM 
	To: For users of Fedora 
	Cc: 
	Subject: Quick scripting question
	
	

	How would I script removing a file (globally) ?
	
	Meaning, say the file name test however, it's in multiple directories
	throughout the system without having to go into each dir manually.
	

	--------------------------------------

	find / -type f -name $filename -exec rm -f {} \;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3766 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20071008/33da2848/attachment-0001.bin 


More information about the users mailing list