hi,
I want to write a shell script that will remove all copies of a
file starting from one directory down to its subdirectories.
Any hints , suggestions ???
ravi.
Any hints , suggestions ???
ravi.
ravi> hi, I want to write a shell script that will remove all copies
ravi> of a file starting from one directory down to its
ravi> subdirectories.
Use find(1):
find . -type f -name junkfile -exec rm -f {} \;
-- dtm
Read the man page for find(1).Quote:>hi,
> I want to write a shell script that will remove all copies of a
> file starting from one directory down to its subdirectories.
> Any hints , suggestions ???
Dan
--
Dan Pop
CERN, L3 Experiment
Mail: CERN - PPE, Bat. 21 1-023, CH-1211 Geneve 23, Switzerland
>ravi> hi, I want to write a shell script that will remove all copies
>ravi> of a file starting from one directory down to its
>ravi> subdirectories.
>Use find(1):
> find . -type f -name junkfile -exec rm -f {} \;
---
------------------------------------------------------------------
Francois-Michel Lang (202) 752-6067 FAX: (202) 752-4530
> Any hints , suggestions ???
>ravi.
(I think, this is what I use to rm core dumps in directories)
You don't even have to put it in a shell script, just alias it.
--
------------------------
Bikram Dhaliwal
(416) 845-4567
1. HELP!! shell script for, file removal....
HI,
I want to write a shell script that will remove all copies of a
file starting from one directory down to its subdirectories.
Any hints , suggestions ???
ravi.
3. HELP!! shell script for recursive file removal..
4. USB support
5. Copy files using filenames from text files with shell script or bash script
7. Shell Script Help (C-Shell Script)
8. Problem installing COL on an 11.5GB Maxtor HDD - Cylinder Number Error Message
10. How to attach file to EMAIL MESSAGE within shell script(Korn shell)
11. NEWBIE-Shell scripting - When to use script variable vs. create tmp file???
12. handling SIGINT in shell scripts when executing another shell script.
13. Q: How can I have a shell script call another shell script...