29 May
2006
29 May
'06
12:59
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. 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