Exploring Utilities in linux
1. Describe the steps and command that is required to translate all the characters in a file called May-2014 report from lowercase to uppercase.
2. Describe the steps and command that is required to translate all the blank characters to new line characters (new line character = ‘\n’) in a file called May-2014.
3. Describe the steps and command that are required to change all instances of the work “May” to the word “MAY” in the file called May-2014.
4. You were a given a very large log file that has the colon “:” delimiter present between each of the line values and you want to pull out the 2, 4 and 7 column to a file called “May-2014-parsed”. What are the steps you would take to accomplish this task. Hint: use the awk command.
5. You have two very large log files in your directory from yesterday and the day before and you were wondering what the difference is between them. What command could you run to see the differences between and the file? Please explain the command in a paragraph or less.
1. Lowercase to Uppercase
$ tr '[:lower:]' '[:upper:]' < May-2014>
May-2014
$ cat May-2014
2. Translate all the blank characters to new line characters
$ tr ' ' '\n' May-2014
3. Change all instances of the word “May” to the word “MAY”
$ tr 'May' 'MAT' May-2014
4. Pull out the 2, 4 and 7 column to a file called “May-2014-parsed"
$ awk -F ":" '{print $2 $4 $7}' May-2014-parsed
5. Difference between Files

Exploring Utilities in linux 1. Describe the steps and command that is required to translate all...
In a linux command line
Give AWK commands for accomplishing each of the following: Print the 2nd last field (the field directly before the last field) of each line from a file named 'last.txt' Assume you have a file called 'names' that contains a list of people, one person per line. Also, assume that on each line the 3rd field on that line contains the age of the person. Some of the people do not have an age listed, and...
You are required to write a C program on Unix/Linux in which the parent process creates three child processes, lets them run concurrently, and waits for them to return and prints their exit status. The three child processes are assigned different tasks. Child one is to calculate and display the highest mark of a class of ten students for a unit. Child one is required to get the marks from the standard input (i.e. the keyboard). Child two is to...
1. Give the command (single command or pipelined series of commands) that performs each of the following tasks. Assume bash, and the commands we have been discussing. Do not use things like perl, awk, python, etc. Unless specifically stated otherwise, assume that the command should work no matter what your current working directory is or where a user's home directory is located. Use only flags that are required by the question as stated. Assume you are logged in as a "normal" (non-administrator) user,...
Lab 0: Essential UNIX OperationsObjectivesAt the end of this of lab, you should be able to:securely log in to a remote computer running a UNIX-like operating systemread the manual page for any commanduse the UNIX file systemedit a text fileNotes:· In order to get familiar with UNIX, do all your work on UNIX.· A command line interface may be harder to learn, but can be more powerful for scripting and automating tasks.· ...
C Program In this assignment you'll write a program that encrypts the alphabetic letters in a file using the Vigenère cipher. Your program will take two command line parameters containing the names of the file storing the encryption key and the file to be encrypted. The program must generate output to the console (terminal) screen as specified below. Command Line Parameters Your program must compile and run from the command line. The program executable must be named “vigenere” (all lower...
Completion is a screenshot of the batch file showing all
of the steps to create the file system shown below.
Instructions Create a batch file clifilesystem.cmd using Notepad which performs the following steps to create the file system shown below. Also use a proper comment for each step before the command. Proof your work. Finally submit the clifilesystem.cmd file in Blackboard Figure 1. The clijfilesystem.cmd file system Work from Desktop unless using an absolute path Desktop NOS110 OS Labs Homework...
Please write a BASH Script in LINUX that... 1. is actually executable 2. has a comment to tell us what you did, why and how. 3. allows a user to enter their name and a number between 1 than 100 (this must be prompted so the user knows what to do) 4. creates a random number between 1 and 100 for you to guess. The command to create a random number is shown below. (if you find a better one...use...
LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check the output) Display the command(s) used to do the following: create an empty file called history by using just a redirection operator. Verify and show. Show/verify all results (i.e., all commands and their corresponding outputs). Wait 1 minute or more and then display the command(s) used to do the following: change the timestamp on the history file you just created. Verify/display the change. Show/verify...
1. Explain the difference between the /etc/profile and the ~/.bash_profile file. Which one is executed first? 2. Edit your .bash_profile file as follows: 1. Welcome the user 2. Add your home directory to the path if it is not there 3. Set erase to the Backspace key using stty. 4. Type source .bash_profile. What is the function of the source command? 3. What is the default primary prompt? 1. Change the prompt to include the time of day and your...
A palindrome is any word, phrase, or sentence that reads the same forward and backward. Here are some well-known palindromes: Able was I, ere I saw Elba A man, a plan, a canal, Panama Desserts, I stressed Kayak Write a program that determine whether an input string is a palindrome or not. Input: The program should prompt the user "Please enter a string to test for palindrome or type QUIT to exit: " and then wait for the user input....