Link to home
Start Free TrialLog in
Avatar of Sunfish2203
Sunfish2203

asked on

JSP page Touch for all Directories

I am trying to do a touch to all files in a direcory as well as all files in direcories below that direcory. I tried: touch *.jsp but that only ran the touch on the .jsp files at the initial direcory level. Then I tried a touch\*\ *.jsp but that only touched the the initial direcory level files and files located one direcory down form the initial direcory. The problem is I have some files that are located 3, 4 or 5 directories down. How can I run one touch comand that will touch all files in a direcory including files locted in direcories in the initial direcory even if files are located 4 or five directories down in the initial directory?
ASKER CERTIFIED SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sunfish2203
Sunfish2203

ASKER

How can I do it form PuTTY or a Terminal? Not using Java.
I am just a JSP expert.  But I guess you need to write a script to do it. I don't know which scripting language to suggest. You could ask a question at  
https://www.experts-exchange.com/Programming/Languages/Scripting/   
The solution will work in Java but I was looking for a PuTTY script. I'll ask in that section.