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 05:13:54 PST Xref: gmd.de comp.os.vms:32437 comp.sys.dec:10783 comp.sys.hp:26078 Newsgroups: comp.os.vms,comp.sys.dec,comp.sys.hp Path: gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!titan.inmos.co.uk!inmos.co.uk!iremember!hughm From: hughm@iremember.inmos.co.uk (Hugh McIntyre) Subject: Re: Move from VMS to Open VMS or to HP-UX? Advice sought! Message-ID: <1993Oct12.115529.21131@inmos.co.uk> Sender: news@inmos.co.uk Organization: INMOS Limited, Bristol, UK 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> Date: Tue, 12 Oct 1993 11:55:29 GMT 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.