Question: 1. Provide the command (and the output) to display the lines that contain the literal character $ 2. Provide the command (and the output) to
1. Provide the command (and the output) to display the lines that contain the literal character $
2. Provide the command (and the output) to display the lines that contain the literal character .
3. Provide the command (and the output) to display the lines that contain the literal character ;
1. Write the command and provide a screenshot of the output to print all entries in the addr file for which the email address is from a valid educational institution(ends with .edu)
2. What is the difference between the two commands (or regular expressions) below?
grep * filename grep \* filename
1. Use egrep with pipe to extract information for Elizi , Ma , and Jackson.
2. Use egrep with { } to extract lines with valid zip code
3. Use egrep with { } to extract lines with invalid zip code
4. Sort the addr file by phone number and print lines 1 thru 3.
5. Print the lines that end with valid zip code
6. Print the lines that end with invalid zip code
7. Add the string School Email next to all email addresses ending with .edu
8. Provide the sed command to get rid of the lines with private email addresses
9. Provide the command to print the rows that use imap number.
10. Provide a command to print only the first name, last name and email address of the person
11. Print the names, phone number, and zip in a tabular manner
12. Print the Last Name, First Name, Email Address and zip in a tabular format. Include the header identifying each field.
Part IV: Provide the command, script file content and the output for the below questions
1. Write a script file to print the Last Name, First Name and email address of a student with a header and a footer.
2. Refer to the file groups and print the list of user names and their groups. Use a script file with a header and footer
3. Refer to the file groups and write an awk script file which would accept a userID input and display the group name for that userID as output.
Files sety $1+ $2 = 4.3; This is a $5 note.
This line does not contain a dot but has a $ This has a semi colon;
Addr (Column 1 LastName, Column2: First name, Column3: email address, Column4: phone number, Column5: zip code)
Hilton,Tom,thilton.,85281345,543781,imap987648790 Potter,Harry,hpotter@hogworts.edu,853645555,875234 Granger,Herminone,hgranger@hogworts.edu,9856017638,334567 Moe,Elizi,3892000109,345678 Ta,Ma,mata@asu.edu,6747829191,85281 Five,Jackson,jfive@asu.edu,7839209871,78339 Bean,Sean,sbean@asu.edu,56783908156,78648 Turner,Sophie,sturner@asu.edu,6784937689,9873329 groups (Column 1- Group ID, Column 2: Group Name, Column 3: UserID)
1,Griffindor,hpotter 2,Hufflepuff,cdiggory 4,Slytherin,ssnape 3,Ravenclaw,cchang 1,Griffindor,rweasley 1,Griffindor,hgranger
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
