1.I have a text file astronauts.txt. I need to extract the second word of each line from this text file, astronauts.txt. and save it in a new file called members.txt. How can I do this using a ‘(i)...

Need shell scripting for UNIX. Pl refer to the link in the question for reference.


1.I have a text file astronauts.txt. I need to extract the second word of each line from this text file, astronauts.txt. and save it in a new file called members.txt. How can I do this using a ‘(i) for’ loop and (ii) command ‘cut’? I have created a directory that has 5 files. Name of the Directory: Space Name of File 1 : Astronautone Name of File 2: Astronauttwo Name of File 3: Astronautthree Name of File 4: Astronautfour Name of File 5: Astronautfive iii) I want to create a new file named Astronautsummary which will be having the 10th line of each file saved in the directory Space using ‘for’ loop. Need this for the UNIX Shell. Link here for reference: https://librarycarpentry.org/lc-shell/ 1. I have a text file astronauts.txt. I need to extract the second word of each line from this text file, astronauts.txt. and save it in a new file called members.txt. How can I do this using a ‘(i) for’ loop and (ii) command ‘cut’? I have created a directory that has 5 files. Name of the Directory: Space Name of File 1 : Astronautone Name of File 2: Astronauttwo Name of File 3: Astronautthree Name of File 4: Astronautfour Name of File 5: Astronautfive iii) I want to create a new file named Astronautsummary which w ill be having the 10th line of each file saved in the directory Space using ‘for’ loop. Need this for the UNIX Shell. Link here for reference: https://librarycarpentry.org/lc - shell/ 1.I have a text file astronauts.txt. I need to extract the second word of each line from this text file, astronauts.txt. and save it in a new file called members.txt. How can I do this using a ‘(i) for’ loop and (ii) command ‘cut’? I have created a directory that has 5 files. Name of the Directory: Space Name of File 1 : Astronautone Name of File 2: Astronauttwo Name of File 3: Astronautthree Name of File 4: Astronautfour Name of File 5: Astronautfive iii) I want to create a new file named Astronautsummary which will be having the 10th line of each file saved in the directory Space using ‘for’ loop. Need this for the UNIX Shell. Link here for reference: https://librarycarpentry.org/lc-shell/
Mar 07, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here