Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help in doing these command Unless otherwise specified, assume that you start this assignment in your home directory. Assume that after each question
I need help in doing these command
Unless otherwise specified, assume that you start this assignment in your home directory. Assume that after each question you return to your home directory. A few of these problems will require some thought. Try to break the problems into individual commands and test out your ideas before assembling commands together. Good luck. You should be in your home directory. Display the contents of the grades files for all people whose name begins with the two letters "ge". (Don' t just look at all the files, figure out which ones start with ge, and then write a command that only applies to those names. Your command should work no matter what people are in the directory. Think "patterns".) You should be in your home directory. List all the info and log files (What's the command to list all files ending with info OR. log?) You should be in your home directory. Create a file named substandard in your home directory that contains the file names and lines (the data, not the line numbers), in the grades files where students scored less than ten out of a hundred. You should be in your home directory. Create a directory named data in your home directory. Copy all info files into this directory. You should be in the cs155/pub/hw2Files/ directory. (Do not add this change of directory command to your list of commands) Create a file named classes in your home directory with a list of all the classes taken by anyone (eg. classes listed in all grades files). Look at the manual page for cut, and be sure to use quotes on your delimiter. Second command: sort this file alphabetically and ensure each course is only listed once. Don't change what's in the file classes, just display the results. You should be in your home directory. Create a file named fire in your home directory with a listing of all people who logged in on July 4th 2006. Use the log files and search for anyone with an entry for the date specified. Look in the manual for how to use the cut command in more detail to get just the name. If the user logged in several times on that day, their name should only appear once in the file. The file should be just a list of names-nothing but names. No dates, no slashes, no colons. Do this in steps until you get the whole thing. You should be in the -Cs155/pub/hw2Files directory. Create a file log.info in your home directory containing two columns, where the first column is the number of times the person has been logged and the second column is the person's name (use cut to remove the log from the output). The file should be sorted in ascending order of the number of log entries (least on top). The last line of the file will be the total
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started