The file /usr/share/dict/words holds a list of English words. We want to use egrep to display only those which match the following rules; The word has tow or more quote symbol ‘ in it Each quote symbol is followed by one or more character The word should not start with a quote symbol ‘ In addition; we are working with Ubuntu Linux on the bash shell using GNU egrep tool Here are some examples of the words which will be matched; bo’s’n bo’s’n’s bo’s’ns Which of the following is the best solution?
Consider the following data files: digits-en.txtThis file c…
Consider the following data files: digits-en.txtThis file contains digits (0 to 9) and their lower-case spelling in English.Example of contents: nine 9two 2one 1four 4 digits-fr.txtThis file contains similar information, but the digit comes first and the words are in French (without accentuated letters, to make things easier).Example of contents: 8 huit3 trois4 quatre1 un digits.txtThis file contains only numbers.Example of contents: 354298 Please note the following: Our files may not all feature the same numbers. We will therefore have the spelling for some numbers in only one language, in both, or in none. None of the files are to be assumed to be already sorted by numbers. A single space is used as separator in all files. We want to display the following: Sorted list of all numbers that have an English spelling in our files. Sorted list of all numbers that have only a French spelling in our files. Sorted list of all numbers that have a spelling in only one of the two languages.
I have a process with job ID 1 running in the background. It…
I have a process with job ID 1 running in the background. It is draining the CPU usage on the shared server on which I am logged in so I would like to pause its execution for now. Provide all the different syntaxes and ways to do so that you can think of.
A friend asked me to help them out on the UNIX system they a…
A friend asked me to help them out on the UNIX system they are remotely connected to. Problem is, I’m not even sure this is a Linux system! What shell command would I issue to display the name of the operating system?Select all that apply.
We have a plain-text file named persons-of-interest.txt. It…
We have a plain-text file named persons-of-interest.txt. It contains several fields, each separated from the next by a single space. Within each field, no space character is used. The first field is a first name, the 2nd a last name, and the 3rd an optional variable-length integer called the Jedi Extensive Directory Identifier (J.E.D.I.). Another file, named mc.txt contains only two fields. The first one is a J.E.D.I. number, and the second a decimal number representing the midi-chlorian count of the corresponding individual. Provide command lines allowing us to display only the last name and midi-chlorian count of any individual who has a J.E.D.I. number. Provide another command line allowing us to display only the first and last name of anyone who does not have a J.E.D.I. number.
I want to use echo and the PATH variable to display the foll…
I want to use echo and the PATH variable to display the following information; Your PATH variable is set to /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamesSelect all of the following solutions which will perform this task.
I just logged remotely to a Linux server on which I want to…
I just logged remotely to a Linux server on which I want to run a program named /home/tux/bin/sat_brute_force that will do some computations for a very long time. Since I share access to that Linux server with other users, I want to run the program as follows: It must run in the background It must use the lowest priority that I can set It must keep running in the background after I logout of the remote server Its output must be preserved in a file Provide the command line that you would use to start this program.
I want to count the words from one of the Linux dictionaries…
I want to count the words from one of the Linux dictionaries files, located at /usr/share/dict/american-english, that contain two successive vowels.
We want to issue a single Bash shell command which will exec…
We want to issue a single Bash shell command which will execute a program named myprog and perform the following redirections; – STDOUT will be redirected to a file named results_only – STDERR will be redirected to a file named errors_only If the file already exists, we simply overwrite it; our shell is not set to prevent this. Select all, if any, of the following shell commands which would fit the bill?
I certify that every single work I will submit to be graded…
I certify that every single work I will submit to be graded in this course will be solely the result of my personal work and knowledge. More specifically, I will not seek help from anyone but the instructor of this course. I will also not use material of any form found on the web without first making sure the instructor authorizes me to do so explicitly in writing; e.g. email.