![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with dd command or maybe AFS problem | Anta | Shell Programming and Scripting | 0 | 08-25-2006 07:10 AM |
| SSH Problem auth problem | budrito | UNIX for Advanced & Expert Users | 1 | 03-17-2004 07:12 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
problem with rm
Hi All,
I have this in my shell script find $scrhome -mtime +3 -name "lfname_*" -exec rm {} \; if i execute this directly on command line its working fine. but when i execute shell script it is asking remove lfname_1? so i have to give y or n Can any please tell me how can i avoid this? I want them to be deleted directly with out asking for response. Regards, G. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
First:
Code:
man rm Code:
find $scrhome -mtime +3 -name "lfname_*" -exec rm -f {} \;
|
||||
| Google The UNIX and Linux Forums |