Question: Write a script which receives a list of strings as parameters. Input an index string . Iterate through the list of strings and apply the

Write a script which receives a list of strings as parameters. Input an index string . Iterate through the list of strings and apply the `expr index ` operation on each string using the index string as the index. Output the string and the result of the index operation. When done, run it passing the string

abacab foxtrot duke trespass

and input the index string of abcd. Your output should be abacab 1, duke 1, foxtrot 0, trespass 6.

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!