Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.Print to the terminal the contents of the file red_sox.txt in /home/ghoffman/course_files/it244_files 2.Using grep and pipes, | , select all the Red Sox away games

1.Print to the terminal the contents of the file red_sox.txt in /home/ghoffman/course_files/it244_files
2.Using grep and pipes, | , select all the Red Sox away games where they won, except for the games they played against the Orioles
Away games are indicated by the @ symbol
3.Select all the Red Sox away games where they won, except for the games they played against the Orioles, sorted by date in reverse order
4.Print the contents of the file foo.txt in /home/ghoffman/course_files/it244_files to the terminal
5.Print to the terminal the contents of foo.txt, selecting only those lines with the word "foo" as a whole word
In other words, "foo" must NOT appear as part of another string, like "foobbbbbbbb".
There is an option for grep that tells it to only match the string when it appears as a word, not as part of a bigger string
Check the man page for grep to find this option
Don't call the man page from within your shell script.
Print to the terminal the lines in foo.txt that have the string ### in them
7.Print the contents of the file numbers1.txt in /home/ghoffman/course_files/it244_files to the terminal
8.Use head and tail to print to the terminal lines 6 through 13 in numbers1.txt
9.Use sort to print to the terminal the contents of numbers1.txt in reverse numerical order
10.Use diff to print to the terminal the differences between numbers1.txt and numbers2.txt in a human readable format
11.Print to the terminal the name of the host to which you are connected
12.Consult the man page for date, then use this command to print to the terminal the date in the format yyyy-mm-dd.
Don't call the man page from within your shell script.
13.Print to the terminal the location of the executable file for perl, a scripting language. The command you use should only work for executable files
14.Find all files that have the string "nano" in their filename
15.List all the users currently logged in to users3
16. Run finger on your Unix username to print to the terminal the information you entered in your .plan file

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_2

Step: 3

blur-text-image_3

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 Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions