Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this assignment, you will use awk only. Do not use bash, sed, perl, Python, or any other lan- guages/utilities not explicitly specified. News Commands
For this assignment, you will use awk only. Do not use bash, sed, perl, Python, or any other lan- guages/utilities not explicitly specified. News Commands Awk Script You have set up a news server and your feed has just sent you his active file. Rather than typing and executing the commands on an individual basis, you decide to write an awk script to create from the active file a file consisting of the necessary addgroup commands. You then plan to execute the file containing the addgroup's. 1. The active file is located in the course directory on the fox machines. In order to save yourself some typing, create a symbolic link in your assign3 directory by using the following command: In -s /usr/local/courses/ssilvestro/cs3424/Spring21/assign3/active active 2. The lines in the active file have the following format: comp.os.linux.announce 0000002587 02190 m comp.arch 0000028934 28874 y utsa.cs.2413 0000000004 0000000001 y 3. Each line in the active file should be converted to an addgroup command. For example, the previous three lines should generate the following commands: addgroup comp.os.linux.an addgroup comp.arch y addgroup utsa.cs. 2413 y 4. The awk script must be in a file named news.awk in your assign3 folder, and you should be able to run the conversion with the following command: awk -f news.awk active > news.commands announcem
Step 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