Question: unix shell script Write a script (countstring.sh) that accepts filename (first argument) and a string (second argument) as arguments and then counts the number of

unix shell script

Write a script (countstring.sh) that accepts filename (first argument) and a string (second argument) as arguments and then counts the number of occurrences of the string in the file. NOTE: search CA in line CAdCA will derive 2, not 1.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!