Question: This I need shell scripting in UNIX. a) How do I write a 'for' loop that could write the 2nd word of each line in

This I need shell scripting in UNIX.

a) How do I write a 'for' loop that could write the 2nd word of each line in a file to a new file called .

b)How do I write a 'for' loop that would create a file called 'File3.text' which will be having the 10th line of each file saved in a directory named 'Main'.

All these files would be saved in the directory 'Main"

This I need shell scripting in UNIX.

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!