in reply to Directory used % in Linux
Untested but "should work"
sh: 1: Syntax error: "(" unexpectedopendir $mydir, "/somedir"; chdir $mydir; print `du -ha $mydir`; closedir $mydir;
ups, or maybe not :-)
Well... this is awful, but works
perl -e 'system("du -ha /somedir");'but this don't go, Opendir issue probably. I'm surely doing a very silly mistake
perl -e 'opendir (my $dir, "/somedir"); chdir $dir; system ("du -ha $dir"); closedir $dir;'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: <p>Directory used % in Linux </p>
by Anonymous Monk on Jan 31, 2014 at 22:42 UTC | |
by pvaldes (Chaplain) on Feb 21, 2014 at 15:27 UTC |