Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Writing batch script to delete files
Name: Pinky Kapoor Date: January 21, 1999 at 09:04:08 Pacific
Comment:
Hello
I need to write a simple batch script to delete all the files in a particular directory which are older than 24 hours.
Name: Jonathan Fuerth Date: January 25, 1999 at 21:45:45 Pacific
Reply:
Look at your vendor-supplied find(1) program. Do this with the command line
man 1 find
and you should see how to ask the find(1) program to delete older files for you.
I can't be any more specific, since you didn't say which operating system you're using.
Hope this helps.
0
Response Number 2
Name: Melphia Date: May 9, 2000 at 11:40:00 Pacific
Reply:
Ok write this in a batch file
cls erase c:\windows\win.ini
0
Response Number 3
Name: Shaun Date: October 5, 2000 at 05:29:19 Pacific
Reply:
DO NOT write the batch file listed above...the one that says erase c:\windows\win.ini...windows will not run correctly if you do so. You're a b$%^&$d for writing such a thing to a newbie looking for help.
Summary: hi, I am trying to write a script to delete few lines from the existing files. The requirement is as follows: 1. I need to grep for a pattern "abc" in a file and then grep for "xyz" 2. I need to delet...
Summary: Would you please help me write a script to move file between dirs? I am new to unix. But I need this for my work. The script should check id and pw. thanks. ...