home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!krisk
- From: krisk@ux1.cso.uiuc.edu (Kris Klindworth)
- Subject: Re: counting spaces
- Message-ID: <C0I8zt.sz@ux1.cso.uiuc.edu>
- Organization: University of Illinois at Urbana
- References: <1993Jan7.191409.25394@netnews.whoi.edu>
- Date: Thu, 7 Jan 1993 22:26:02 GMT
- Lines: 13
-
- eklein@whsun1.wh.whoi.edu (Edgar Kleindinst) writes:
-
-
- >How do you count the spaces in a text file using Unix commands? Sounds simple
- >dosen't it.
-
- tr -cd ' ' <file |wc -c
-
- ------------------------------------------------------------------------------
- Kris Klindworth Internet: krisk@ux1.cso.uiuc.edu
- Database Programmer Phone : (217)244-7120
- Illinois State Water Survey US Mail : 2204 Griffith Dr
- Champaign, IL 61820
-