in reply to Issuing chmod commands using perl
I've made an script, that read the list you subbmitted ... You can generate a shell script, for chmodding all your listed files:
...perl -ne '($permissions,$file)=/(\d{3})\)(?:[^\)]+\))?(\S+)/ and print + "chmod $permissions $file\n"' list
Hope that helps ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Issuing chmod commands using perl
by localist (Initiate) on Feb 19, 2006 at 18:38 UTC | |
by turo (Friar) on Feb 20, 2006 at 08:49 UTC |