[HPADM] Count number of character per line within a file (?)

From: Ruby Domalanta (rdomalan_at_dairy-farm.com.ph)
Date: 11/10/04

  • Next message: Ruby Domalanta: "[HPADM] [HPADM Summary] Count number of character per line within a file (?)"
    To: "'hpux-admin@DutchWorks.nl'" <hpux-admin@DutchWorks.nl>
    Date: Wed, 10 Nov 2004 09:15:44 +0800
    
    

    Dears,

    Is there a utility or script that will count the number of character per
    line within a file?
    Say, I have this file named label.

    Content of file label
    ---------------------
    HEADER;DFCLPAL;1;1;6;5 --> 22 characters
    LN=8;01;e7;la=0.200,4.700;lc=3;lf=1;ld=2;lh=1.000;li=0.300;lk=0: --> 65
    characters

    Thanks in advance,
    Ruby Ann Domalanta

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Ruby Domalanta: "[HPADM] [HPADM Summary] Count number of character per line within a file (?)"

    Relevant Pages

    • [HPADM] [HPADM Summary] Count number of character per line within a file (?)
      ... for providing solution that suits my needs. ... > Is there a utility or script that will count the number of character per ... I have this file named label. ... > Ruby Ann Domalanta ...
      (HP-UX-Admin)
    • Re: Grep and mv
      ... not some control character or the other ... > My silly little grep script extracts the names as ... Please post the script you used, ... >The space is not coming from within the file with this string. ...
      (comp.unix.shell)
    • Re: UTF-8 without external modules on Perl 5.0
      ... nothing about UTF-8 encoding/decoding in the stock modules of this ... so there is no way to have a character outside of the range ... So if you need to work with unicode strings in perl 5.005, ... verbatim in the script but make variables with their UTF-8 byte sequence ...
      (comp.lang.perl.misc)
    • Re: Cant find string terminator ...
      ... I use TextPad as my editor. ... Lately I noticed this on my home machine when running a test script: ... It's like an EOF character is buried in there somewhere. ... Notepad has some quirky behaviour as well. ...
      (comp.lang.perl.misc)
    • Re: shell scripting with solaris, help.
      ... Note that it's always preferable to separate options from other ... Bourne shell), so, if you want the script to be interpreted by a ... shell that recognizes the same syntax as the sh of other Unices, ... you want the first character of the first line of the ...
      (comp.unix.solaris)