Question: Write AWK statements to do the following (show your code and output): a) print out Hello World!!! b) Create a copy of /etc/passwd in your
Write AWK statements to do the following (show your code and output): a) print out "Hello World!!!" b) Create a copy of /etc/passwd in your home directory called passwdCopy; print the first 5 rows. c) Print out lines from passwdCopy having the pattern /bgoat/. d) The -F option allows you to specify a field separator. Use a : to separate the fields read from passwdCopy and print out the UID, shell, and user-name (in that order) for bgoat in passwdCopy.
Write an AWK or Perl script that: prompts for a filename to search for; searches the current directory for the filename; if the filename is found, the script reports so and provides absolute path to the filename; if it does not find the filename, the script reports so.
Write an AWK or Perl program that joins the tables SPY.txt and TLT.txt using the date column of each as primary-foreign key relationship (date is the common column with unique values). The resulting table should display only one date column. In addition to your script, show the first 10 rows of the result of this join.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
