Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a command to find every class whose course-number starts with a 33.( A CRN can appear at any point in any line; you only

image text in transcribed
Write a command to find every class whose course-number starts with a 33.( A CRN can appear at any point in any line; you only want the lines that are headings for entries, like "CSC 1234: Computering".)
5. Write a command to find every class whose course-number starts with 33. (A CRN can appear at any point in a line; you only want the lines that are headings for entries, like "CSC 1234: Computering") 5. Write a command to find every class whose course-number is even. (Hint: the course-number is even if the last digit is even.) 7. Write a command to find every 4000-level class. (Again, you only want the lines that are headings for an entry.) 8. Write a command to remove all the course-title lines. 9. Write a command to remove all the credit hour and prerequisite lines. You can do this with grep or sed. You can do this with one command, but you can also use 2 in a pipeline.) 10. Write a command to replace all the 4000-level course-numbers with "senior-level". 11. Write a command to remove the course-number prefix from the header lines. (So, for the line "CSC 1234: Computering", remove the "CSC 1234: " part.) Find 12. Write a command to find every file with 'std' in the name in your /lib/ directory. (OS X users may not have a /lib/directory; if you don't, use snowball.) 13. Write a command to find every file with .a in the name in your/lib/directory, and then filter out the lines with "gomp" in them. 14. Repeat the previous command, but sort the output. 5. Write a command to find every class whose course-number starts with 33. (A CRN can appear at any point in a line; you only want the lines that are headings for entries, like "CSC 1234: Computering") 5. Write a command to find every class whose course-number is even. (Hint: the course-number is even if the last digit is even.) 7. Write a command to find every 4000-level class. (Again, you only want the lines that are headings for an entry.) 8. Write a command to remove all the course-title lines. 9. Write a command to remove all the credit hour and prerequisite lines. You can do this with grep or sed. You can do this with one command, but you can also use 2 in a pipeline.) 10. Write a command to replace all the 4000-level course-numbers with "senior-level". 11. Write a command to remove the course-number prefix from the header lines. (So, for the line "CSC 1234: Computering", remove the "CSC 1234: " part.) Find 12. Write a command to find every file with 'std' in the name in your /lib/ directory. (OS X users may not have a /lib/directory; if you don't, use snowball.) 13. Write a command to find every file with .a in the name in your/lib/directory, and then filter out the lines with "gomp" in them. 14. Repeat the previous command, but sort the output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

1680838482, 978-1680838480

More Books

Students also viewed these Databases questions

Question

Define the term Working Capital Gap.

Answered: 1 week ago