[Rule-list] finding hard disk size
Devon
devon at tuxfan.homeip.net
Tue Apr 9 05:27:03 EEST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 08 April 2002 09:49 pm, Devon wrote:
> > factor1=$(fdisk -l | grep Disk | cut -d , -f 3 | cut -d c -f 1 )
> > factor2=$(fdisk -l | grep Units | cut -b 22- | cut -d '*' -f 1 )
> > factor3=$(fdisk -l | grep Units | cut -b 22- | cut -d '*' -f 2 | cut
> > -d b -f 1 )
>
> But it won't work in the shell available in the installer. :)
> Refer to my previous post for syntax the installer will handle.
It's worse than that. My script won't work either, this shell doesn't
have the 'let' built-in. I'm searching at present, but it doesn't look
like the shell has math functions.
One other minor problem Larry. You have to specify the disk to run
fdisk on. Try your script on a machine with more than one drive.
- -D
- --
pgp key: http://www.tuxfan.homeip.net:8080/pgpkey.txt
Red Hat Linux 7.2 in 8M of RAM: http://www.freesoftware.fsf.org/rule/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8slF4eMAUbzJhSVcRAgDdAJ49+caGBZvPCD8NqP4i1O55PCyKuQCeI8kv
60G5fXe7xGgv2J16A5WKYcc=
=ve6o
-----END PGP SIGNATURE-----
_______________________________________________
Rule Project HOME PAGE: http://www.freesoftware.fsf.org/rule/
Original Rule Development Site http://savannah.gnu.org/projects/rule/Rule-list at mail.freesoftware.fsf.org
http://mail.freesoftware.fsf.org/mailman/listinfo/rule-list
This full static mirror of the Run Up to Date Linux Everywhere Project mailing list, originally hosted at http://lists.hellug.gr/mailman/listinfo/rule-list, is kept online by Free Software popularizer, researcher and trainer Marco Fioretti. To know how you can support this archive, and Marco's work in general, please click here