Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I will count words in a file (or more files) and count (if given up) empty files (test -z?), how can I do this? Like this: There are "108" ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    1

    count words and empty files

    Hello,

    I will count words in a file (or more files) and count (if given up) empty files (test -z?), how can I do this? Like this:
    There are "108" words in "3" files
    There are "2" empty files

    Thanks for your reaction.

    Regards,

    Arjan Engbers

    (My English is not good, I hope you understand me)

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    452
    did you try "wc -w"?
    the sun is new every day (heraclitus)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...