Article View: comp.unix.shell
Article #1502shell / awk question
From: Eric van Wessel
Date: Tue, 16 Oct 1990 11:56
Date: Tue, 16 Oct 1990 11:56
26 lines
926 bytes
926 bytes
quota | awk 'BEGIN { FS=" " } { quot=$2 }
END { printf "%d\n",quot } '
^^
How to make quot known here ?
|
|
|
|
du -s $HOME | |
awk 'BEGIN { FS=" " } { printf "\nDiskspace\n"; |
printf "---------\n"; |
used=($1)/2; |
free=quot-used } <----------------
END { printf "Used : %d kb. (%d%%)\n",used,used/(quot/100) ;
if (free>=0)
printf "Free : %d kb.\n\n",free
else printf "Too much : %d kb.\n\n",-free } '
Does anyone know?
Please e-mail ( emwessel@praxis.cs.ruu.nl )
Thanks, Eric
Technical Details
Message-ID:
<4057@ruuinf.cs.ruu.nl>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!hp4nl!ruuinf!praxis!emwesselShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!hp4nl!ruuinf!praxis!emwessel From: emwessel@praxis.cs.ruu.nl (Eric van Wessel) Newsgroups: comp.unix.shell Subject: shell / awk question Keywords: shell, awk Message-ID: <4057@ruuinf.cs.ruu.nl> Date: 16 Oct 90 11:56:35 GMT Sender: news@ruuinf.cs.ruu.nl Lines: 26