Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is UNIX and Shell Programming. Please do #2, #4, #6, and #10. Do all if possible:) Will thumbs up! Thank you. Session IVv 1.
This is UNIX and Shell Programming. Please do #2, #4, #6, and #10. Do all if possible:) Will thumbs up! Thank you.
Session IVv 1. Log into the system. 2. Without using an editor, create a one-line file, called filel, using the echo command (use output redirection). This is one of the way we can create a short file quickly. 3. Check the contents of file1 using the more command. 4. Now, without using an editor, create a two-line file, file2, using the echo command. Use double quotes for the argument of the echo command. Put the opening quote in the first line and the closing quotes in the second line, but do not close it until the end of the second line. In your own words, explain what you just did and why it works. 5. Check the contents of file2 using the more command. 6. Store "UNIX vs. Others" in a variable called facts. 7. Now use the following command: echo "This is a fact facts in our life." What is printed and why? Continued SECTION 5.21 LAB SESSIONS 199 8. Now use the following command: echo "This is a fact $facts' in our life" What is printed and why? 9. Now use the following command echo "This is a fact \$facts in our life" What would be printed and why? 10. Try to use a command to print the following message (including the quotes) using the value of the variable facts: "This is a fact "UNIX vs. Others" in our life" 11. Log out of the systemStep 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