Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!uwvax!rutgers!sri-unix!teknowledge-vaxc!mkhaw From: mkhaw@teknowledge-vaxc.ARPA (Mike Khaw) Newsgroups: comp.unix.questions Subject: Re: Can't ls -l add file sizes properly?? Message-ID: <19027@teknowledge-vaxc.ARPA> Date: Thu, 19-Nov-87 14:56:01 EST Article-I.D.: teknowle.19027 Posted: Thu Nov 19 14:56:01 1987 Date-Received: Sun, 22-Nov-87 02:37:44 EST References: <456@morgoth.UUCP> Organization: Teknowledge, Inc., Palo Alto CA Lines: 14 On Ultrix 1.2, I did ls -s | tail +2 | awk '{sum += $1} END { print sum }' and got the same number that the ls "total" printed. Apparently the "total" just adds up the number of kilobytes that each file occupies (rounded up to the nearest kilobyte for each file), so you get accumulated rounding error. Mike Khaw -- internet: mkhaw@teknowledge-vaxc.arpa usenet: {uunet|sun|ucbvax|decwrl|uw-beaver}!mkhaw%teknowledge-vaxc.arpa USnail: Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303