Use the spaces provided to show your complete work (the command you used to accomplish each task and the output from you

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Use the spaces provided to show your complete work (the command you used to accomplish each task and the output from you

Post by answerhappygod »

Use the spaces provided to show your complete work (the commandyou used to accomplish each task and the output from your command).Remember, regular expressions are case sensitive unless otherwisespecified.
The problems on this page use the file/home/unix/assets/homelistings file.
1. How many homes were for sale in both counties? (Justcount the lines in the file.)
2. How many homes were for sale in the 95677 zip code?
3.Show the lines from the file for zip codes 95677 and 95765.(Both of these are in Rocklin.) Useone command.
4. Show the lines from the file for homes on Sunset Ave inzip code 95628.
5. Show the lines from the file for homes in the 8000-8999section of Sunset Ave in 95628. Now let’s put your mad “grepping”skills to work with some real-life tasks that system administratorsand webmasters need to do.
6. The ps -ef command displays all running programs on thesystem. Filter the ps -ef output to show only the apache2programs.
7. Filter the ps-ef output to show only the processes beingrun by root. Display it a page at a time.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply