LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help with a mini script (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-a-mini-script-4175493232/)

waelkd 01-31-2014 03:41 AM

Help with a mini script
 
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


Edit: How can we count articles found in a file, now these articles are seperated by ----------.

Thanks again

grail 01-31-2014 03:49 AM

What have you done to solve this problem?

Are you looking to write a shell script or perhaps perl or some other language?

waelkd 01-31-2014 04:03 AM

Quote:

Originally Posted by grail (Post 5108571)
What have you done to solve this problem?

Are you looking to write a shell script or perhaps perl or some other language?



yes sir , looking to write it a shell script or write it on python

grail 01-31-2014 08:53 AM

You did not answer the first question ... what have you done? We are here to help, not to do the work for you.


All times are GMT -5. The time now is 01:29 PM.