home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15296 < prev    next >
Encoding:
Text File  |  1993-01-07  |  877 b   |  24 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!krisk
  3. From: krisk@ux1.cso.uiuc.edu (Kris Klindworth)
  4. Subject: Re: counting spaces
  5. Message-ID: <C0I8zt.sz@ux1.cso.uiuc.edu>
  6. Organization: University of Illinois at Urbana
  7. References: <1993Jan7.191409.25394@netnews.whoi.edu>
  8. Date: Thu, 7 Jan 1993 22:26:02 GMT
  9. Lines: 13
  10.  
  11. eklein@whsun1.wh.whoi.edu (Edgar Kleindinst) writes:
  12.  
  13.  
  14. >How do you count the spaces in a text file using Unix commands? Sounds simple
  15. >dosen't it.
  16.  
  17. tr -cd ' ' <file |wc -c
  18.  
  19. ------------------------------------------------------------------------------
  20. Kris Klindworth                    Internet: krisk@ux1.cso.uiuc.edu
  21. Database Programmer                Phone   : (217)244-7120
  22. Illinois State Water Survey        US Mail : 2204 Griffith Dr
  23.                                              Champaign, IL 61820
  24.