From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,32c594a83e2d8db X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,32c594a83e2d8db X-Google-Attributes: gid1164f8,public X-Google-Thread: 114b0c,32c594a83e2d8db X-Google-Attributes: gid114b0c,public X-Google-ArrivalTime: 1993-10-12 11:43:47 PST Xref: gmd.de comp.os.vms:32466 comp.sys.dec:10793 comp.sys.hp:26107 Newsgroups: comp.os.vms,comp.sys.dec,comp.sys.hp Path: gmd.de!xlink.net!fauern!news.dfn.de!news.dkrz.de!dscomsa!zeubac.desy.de!pawlak From: pawlak@zeubac.desy.de (Jerzy Michal Pawlak) Subject: Re: Move from VMS to Open VMS or to HP-UX? Advice sought! Message-ID: Sender: pawlak@zws008.desy.de (Jerzy Michal Pawlak) Reply-To: pawlak@zeubac.desy.de Organization: Deutsches Elektronen-Synchrotron DESY X-Newsreader: mxrn 6.18-6 References: <1993Sep23.161016.12926@vms.eurokom.ie> <296kj3INNokp@gap.caltech.edu> <1993Oct9.131708.18406@alpha.montagar.com>,<55190@sdcc12.ucsd.edu> <29didbINNcli@gap.caltech.edu> <1993Oct12.115529.21131@inmos.co.uk> Date: Tue, 12 Oct 1993 16:17:16 GMT In article <1993Oct12.115529.21131@inmos.co.uk>, hughm@iremember.inmos.co.uk (Hugh McIntyre) writes: >In article <29didbINNcli@gap.caltech.edu>, carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) writes: >|> How about if you want the total space taken up by all the files with names of >|> the form *.com? > > wc *.com > >This gives the number of lines, words, and characters in all files of the form >"*.com" with a total at the end. If you really object to being told the number >of lines and words, you can use "wc -c *.com" to only count characters. > >Finally, if you really only want the total, you can get this with: > > wc -l *.com | tail -1 > >Hugh McIntyre. >Flash Memory IC Design. >INMOS Ltd., Bristol, UK. > >BTW: I know about rounding errors caused by files only using part of the final > block, which this doesn't tell you about. But it does give you extra info > such as the number of lines which may be useful if you want to know how > many pages of printout would be needed to print them out (for example). > > Oh, and I do agree it would be better for du to have a "-t" option to give > you a total. > Yeah, it doesn't give you what you need - but gives you something else instead. Nice. ;-) Fortunately VMS follows a different design philosophy. I want to know how much disk space is used by these files - so the 'last unfilled blocks' are important for me. Does wc also count the end-of-line characters? (I don't know, just asking...) If not - it's even less similar to what I want... -- Michal (pawlak@zeubac.desy.de)