Find the answer to your Linux question:
Results 1 to 3 of 3
Good day Would someone please help me with the following 1) how can i count an article written by one author. Now if the article has more then one author ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2014
    Posts
    1

    Help with a mini script, please


    Good day

    Would someone please help me with the following

    1) how can i count an article written by one author.
    Now if the article has more then one author ,like author names are seperated by commas it should not count it.

    2)finally a command that output the single authors name,to a file, and they should be sorted alaphabatically

    Your help would be greatly appreciated.

    Thanks

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,258
    This looks like a homework question to me. We can't just give you an answer, but if you work out one for yourself and have a problem making it work, you can come back for a little guidance.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

  3. #3
    Linux Engineer docbop's Avatar
    Join Date
    Nov 2009
    Location
    Woodshed, CA
    Posts
    949
    Quote Originally Posted by ogame1981 View Post
    Good day

    Would someone please help me with the following

    1) how can i count an article written by one author.
    Now if the article has more then one author ,like author names are seperated by commas it should not count it.

    2)finally a command that output the single authors name,to a file, and they should be sorted alaphabatically

    Your help would be greatly appreciated.

    Thanks
    As mentioned already this sounds like homework won't code for you, then I'm learning not you.

    What I recommend is for working out scripts is to workout each command or combination from the command line. That helps you focus on the comands to use and their options, and the pipes and redirections. This way you know you have working commands, then put them into a script, now if you have issues you know it's not the commands, but something to do with scripting and it environment. Break things down to pieces then assemble the pieces.

  4. $spacer_open
    $spacer_close

Posting Permissions

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