Visit Our UNIX and Linux User Community


Task 1 bible


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Task 1 bible
# 1  
Old 12-12-2018
Task 1 bible

Hi i have recently started learning Bash scripting to learn a new skill.

My boss has assigned me a task but i am struggling to complete it would really be thankful for some help ill put what i have so far:

Test1-bible is the directory and each chapter of the bible is a sub-directory hence i have used -r alot to go through all the sub directories. each sub- directory is a html file. the command in the brackets is what i have done so far.

the task is a follows:

write a script to.

Pull out all the lines where the word Jesus appears. ( grep -iw -r -n "jesus" test1bible)

how many time does jesus appear ( grep -r -i "jesus" test1-bible/ | wc -w)

only give me two words either side of the word "lord"

where do the words "which was profaned among the heathen" appear what file and chapter. ( grep -i -r "which was profaned among the heathen")

what is the most repeated word in the bible?

what are the top 10 words used - put them in alphabetical order- give me how many.

now eliminate common words like a, at, the etc.

Thank you

i dont not expect anyone to do it for me but at least point me in the right direction
# 2  
Old 12-12-2018
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.

Previous Thread | Next Thread
Test Your Knowledge in Computers #591
Difficulty: Medium
Selection Sort and Insertion Sort are simple but very efficient search algorithms.
True or False?

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parse an XML task list to create each task.xml file

I have an task definition listing xml file that contains a list of tasks such as <TASKLIST <TASK definition="Completion date" id="Taskname1" Some other <CODE name="Code12" <Parameter pname="Dog" input="5.6" units="feet" etc /Parameter> <Parameter... (3 Replies)
Discussion started by: MissI
3 Replies

2. Shell Programming and Scripting

comment and Uncomment single task out of multiple task

I have a file contains TASK gsnmpproxy { CommandLine = $SMCHOME/bin/gsnmpProxy.exe } TASK gsnmpdbgui { CommandLine = $SMCHOME/bin/gsnmpdbgui.exe I would like to comment and than uncomment specific task eg TASK gsnmpproxy Pls suggest how to do in shell script (9 Replies)
Discussion started by: madhusmita
9 Replies

3. UNIX for Advanced & Expert Users

Req:Advanced kernel bible

Hi I am looking out for a book which will help admins to fine tune kernel & know in & out of it.. (Linux or Solaris.) Can anyone suggest me a gud book. thanks gokul. (3 Replies)
Discussion started by: gokulagiridaran
3 Replies

Featured Tech Videos