Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hint: The method for working on this project is one step at a time. Get wget working, then focus on reading the file line by
Hint: The method for working on this project is one step at a time. Get wget working, then focus on reading the file line by line, next figure out how to add the line number. Once those steps are complete begin looking at the cut example and command. That will get you the 3rd column or the age, then do the arithmetic and from there you can find the average age.
For this assignment, your bash script will need to do a few things. 1. connect using wget to download the personfile.txt from ftp://10.60.168.126/pub the user will be anonymous. 2. Your script will then need to read and display the contents of the file line by line 3. Add a line number to each line 4. Calculate the average of the people in the fileStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started