bash: make rename script traverse directories
Hi, I have written a simple script to rename a load of files from *.pdf to *_.pdf.
The problem I have is that it can't traverse directories, as I have several hundred directories and I don't fancy running the script manually in each one. I have 3 levels of directories that I need it to look in - basically it just needs to do so recursively. Here is the script: Quote:
Any help would be greatly appreciated. Morrolan |
try
Code:
find . -name '*.pdf' | while read f |
try this:
Code:
for i in `find . -name '*.pdf'` |
All times are GMT -5. The time now is 06:07 AM. |