29 May
2006
29 May
'06
13:06
On Monday 29 May 2006 14:59, Anders Johansson wrote:
On Monday 29 May 2006 14:56, Leendert Meyer wrote:
ls -R * | while read f; do if [ -f "$f" ]; then chmod 644 "$f" fi done
No, it's fundamentally broken.
Not if it is used in a directory without any subdirectories. ;P But yes, I missed that one. ;)
ls doesn't print the full path, so the only result from the above (except for the files in the top level directory) is a lot of "No such file or directory" errors. Per's "find" works
I would use that too. Cheers, Leen