13,420
edits
Changes
→INVESTIGATION 1: BASICS OF REDIRECTION
# Use a text editor to create a file in your current directory called '''data.txt''' and enter the following text displayed below:<br><br><span style="font-family:courier;font-weight:bold">This is line 1<br>This is line 2<br>This is line 3</span><br><br>
# Save editing changes and exit the text editor.<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">tr 'a-z' 'A-Z' < data.txt</span><br><br>What this command do you notice?<br><br># Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">tail -2 data.txt > output.txt</span><br><br>What this command do?<br><br>What does this command do? Check the contents of the '''output.txt''' file to confirm.<br><br># x
# x