Changes

Jump to: navigation, search

Tutorial5: Redirection

12 bytes added, 10:10, 17 January 2021
INVESTIGATION 1: BASICS OF REDIRECTION
# Change to the '''~/redirect''' directory and confirm that you changed to that directory.<br><br>
# 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 does this command do?<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">tr 'a-z' 'A-Z' < data.txt > output.txt</span><br><br>What does this command do? What are the contents of the file ''output.txt''?<br><br>
13,420
edits

Navigation menu