shell script which lists the subdirectories of current directory
Asked by
anasgeorg
I want to create a shell script which lists the subdirectories of the current directory.
What i must use?
Also i want to create a script that finds the files with a "given" pattern and deletes them.The search starts from the current directory and continues with directories at lower level.
It is correct to use :
"find . -name "*.*" -exec grep -l -n "test" {} \; | xargs rm
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- gcc Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- anasgeorg
- Solved:
- Last query:
- Last reply:
To post a message you must log in.