Question
Just looking for the Linux commands to do these steps, doesn't have to be the same document. 1. Create a nano document. Open up the
Just looking for the Linux commands to do these steps, doesn't have to be the same document.
1. Create a nano document. Open up the PDF for this assignment and copy and paste the contents of the PDF named Declaration of Independence into the nano document. Save the nano document as a Declaration and exit the nano document. 2. Using a pipe command, find the sentences that have the word Independent in the declaration and find out how many words are in the sentence. Output the results of the word count to the screen as well as redirect to a filename wcDeclaration.txt(hint use | tee filename to create a new file and print output to screen) 3. Use a pipe command to find all of the sentences with the annihilation and replace all of the letters of that work with capital letters and print the output to the screen as well as redirect to a file name capsDeclaration.txt. 4. Use a pipe command to find all of the sentences using the word States. Change the last s in States to X and redirect the output into a text file named statesDeclaration.txt 5. Count the lines in the document declaration in the fileProcessing directory. Sort the counted lines by number and concatenate the file with a line number in the output. Print the output to the screen and redirect the output into a file named sortedLines 6. List the content of fileProcessing directory
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