Changes

Jump to: navigation, search

Tutorial5: Redirection

68 bytes added, 07:24, 2 February 2021
INVESTIGATION 2: REDIRECTION USING PIPELINE COMMANDS
# Issue the following Linux '''pipeline command''': <span style="color:blue;font-weight:bold;font-family:courier;">ls /bin/???? | sort | grep r | cut -c1-6</span><br><br>
# Confirm that you are still located in the '''~/redirect''' directory.<br><br>
# Issue the following Linux '''pipeline command''':<br><span style="color:blue;font-weight:bold;font-family:courier;">ls /bin/???? | tee unsort.txt | sort | tee sort.txt | grep r | tee match.txt | grep r | head </span><br><br># Issue the '''ls''' command to view the contents of this redirectory.<br><br>What did you notice?<br><br># Check View the contents of the text files that were created to see how the '''tee''' command was used in the previous pipeline command.<br><br># Issue the '''rm''' command Change to <u>onlyyour</u> remove the temporary files called: '''unsorted.txthome''' , directory.<br><br># Remove the '''sorted.txt~/redirect''' , directory and '''unmatchedits contents.txt'''<br><br>
:In the next investigation, you will learn various techniques to issue multiple Linux commands on the same line,<br>or long Linux commands over multiple lines.
13,420
edits

Navigation menu