Question: Linuxzoo Pipes Questions: Write the commands that will execute the following Question 6: using grep Use grep on /usr/share/dict/words to find the first word that

Linuxzoo Pipes Questions: Write the commands that will execute the following

Question 6: using grep

Use grep on /usr/share/dict/words to find the first word that contains the three letter sequence wta

Question 7: count with grep

Use grep piped through wc on file /usr/share/dict/words to find the number of words that contain the letter x.

Question 8: negative grep

Use grep to find all lines in /etc/passwd that do not have nologin one the line. Make grep include the line numbers of the matching lines and send the output to file s5

Question 9: grep and ls

Use ls -l and grep to find all the files in the directory /etc that were last modified in August (hint: try looking for the case sensitive string "Aug"). Send this list to s6.

Question 10: ls grep and sort

Use ls -l and grep and sort to find all the files in /etc that were last modified in Jun. Sort this list in descending order of size and then alphabetically by name (so 2 files with the same size will appear in alphabetic order). Send the output to s7. Sorting using other techniques will probably not get the same answer...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!