in reply to Getting the size of files and stuff
Update: oops, forgot about them pesky dots - actually, you need only check for . with File::Find:perl -MFile::Find -le 'find sub{$x+=-s$_},shift;print$x' some_dir
Now, why no modules?perl -MFile::Find -le 'find sub{return if/^\.$/;$x+=-s$_},shift;print$ +x' some_dir
jeffa
perl -le 'sub r{$r=shift;print(chop$r),r($r)if$r}r("noisrucer")'
|
|---|