Click here to Skip to main content
16,017,322 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear all,


I am new in the Linux world and I need to create a Bash file conatining the below command.

#!/bin/sh
find /path/to/folder/toclean -mtime +5 -type f -maxdepth 3 -exec rm -f {} \;

How do I that?


Thanks.

[Edit] changed title to normal casing [/Edit]
Posted
Updated 8-Nov-13 3:38am
v2
Comments
Andreas Gieriet 8-Nov-13 9:37am    
No shouting please! Please chage title to normal casing.
Thanks
Andi

You might use the vi editor for the purpose. You may find many vi tutorials just Googling for [^].
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900