Question

Question 22 1 pts Which AWK command will print the 3rd field of every row of data it receives from the output of the command

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Q:- Which AWK command will print the 3rd field of every row of data it recieves from the output of the command "Is -l"?

Answer:-----1st Option will be correct.
ls -l | awk â
{ printf \$3"} âTM

Add a comment
Know the answer?
Add Answer to:
Question 22 1 pts Which AWK command will print the 3rd field of every row of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write an awk script to print just the name and size of ordinary files (do not...

    Write an awk script to print just the name and size of ordinary files (do not include directories), one on each line. The output must be aligned as shown in the example below. First, analyze a typical output of the ls -l command to see what differentiates an ordinary file from a directory and which fields contain the file name and size information. Then, determine what the field separator is and whether the default field separator of awk will work,...

  • In a linux command line Give AWK commands for accomplishing each of the following: Print the...

    In a linux command line Give AWK commands for accomplishing each of the following: Print the 2nd last field (the field directly before the last field) of each line from a file named 'last.txt' Assume you have a file called 'names' that contains a list of people, one person per line. Also, assume that on each line the 3rd field on that line contains the age of the person. Some of the people do not have an age listed, and...

  • QUESTION 1 From YOUR home directory, execute a find command string that will locate the file...

    QUESTION 1 From YOUR home directory, execute a find command string that will locate the file called resolv.conf. Include the -exec flag in the find command to cat the file to the screen. Begin your find search from the letc directory Select the correct find command string below that will accomplish this. find /etc-name 'resolv.conf -cat D find /etc-name 'resolv.conf -exec cat 0 find. -name 'resolv.conf -exec cat 0\ find /-name 'resolv.conf' -exec cat 0 QUESTION 2 What find command...

  • QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A....

    QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A. List all files and directories recursively starting from / B. List a file names * in / C. List all files in / directory D. List all files and directories in / directory QUESTION 2 Which command is used to extract a column/field from a text file / input. A. paste B. get C. cut D. tar QUESTION 3 Which command creates an empty...

  • QUESTION 4 Which UNIX shell operator will perform which function?       -       A....

    QUESTION 4 Which UNIX shell operator will perform which function?       -       A.       B.       C.       D.    Append output to a file       -       A.       B.       C.       D.    !!       -       A.       B.       C.       D.    <       -       A.       B.       C.       D....

  • Question 1) Copy file called sortfile from my home directory. The file contains three columns of...

    Question 1) Copy file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field separator. Will the following command sort the file on the group name field? sort -t! -k3 sortfile A) Yes B) No Question 2) Copy the file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field...

  • Question 2 0/1 point (graded) What happens when you remove a directory using the command rm...

    Question 2 0/1 point (graded) What happens when you remove a directory using the command rm -r? You cannot remove a directory using the rm command. You permanently remove the entire directory, including all files and subdirectories. You move the entire directory to a trash folder, but it can be restored later. You get a warning message asking if you want to proceed, then you delete the directory. incorrect Answer Incorrect: Try again. Unix does not warn you before permanently...

  • Question 8 2 pts An electric field given by E = 2x y2 i + yx?j...

    Question 8 2 pts An electric field given by E = 2x y2 i + yx?j + 3 zy? k pierces the Gaussian cube shown below. How much charge, in nC, is enclosed in the cube? (E is in N/C,,y and zin meters). Take En = 8.85 x 10-12 C2/Nm2. y (1,3,0) (4,3,0) (1,3,3) (4, 3, 3) (4,0,0) x (1,0,3) (4,0.3) Equations: I enclosed =o total +0 left +0 from bottom top back right E = 8.85 x 10-12 Nm...

  • Concepts Review FIGURE 7-21 s 2,450 5 s2,190 No Arican wid Dog /23 1/28/2017 $ 1,652No...

    Concepts Review FIGURE 7-21 s 2,450 5 s2,190 No Arican wid Dog /23 1/28/2017 $ 1,652No 4500es 2/2017 1001 12/2017 15 2,300 1. Which element do you click to set a range in a table that will print using the Print command 2. Which element do you click to print field names at the top of every page? 3. Which element do you click to sort field data on a worksheet? 4. Which element points to a second-level sort field?...

  • Question 22 1 pts Which of the following money market securities act like post-dated checks in...

    Question 22 1 pts Which of the following money market securities act like post-dated checks in that the seller of a product is unable to receive the cash from a sale until a future date? Banker's acceptances Commercial paper Negotiable CD's Repurchase agreements

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT