Hi Ramsavi,
You have to break down the problem into the following parts that use known linux programs and concepts.
(1) Choose which Linux utility to use. (You have chosen awk).
(2) How to take the command line argument (1 or 2) and PASS IT IN to awk.
(3) Using awk, read line by line until the first column matches the argument PASSED IN from the previous step.
(4) Take the other columns in this line and create an executable syntax.
(5) EXECUTE it.
What did you try so far?
OK
|