Changes

Jump to: navigation, search

Tutorial11: Sed & Awk Utilities

233 bytes added, 09:09, 24 July 2020
INVESTIGATION 1: USING THE SED UTILITY
# Issue the following linux command:<br><span style="color:blue;font-weight:bold;font-family:courier;">sed -n 'p' data.txt</span><br><br>What do you notice?<br><br>You can specify an address (line #, line #s or range of line #s) when using the sed utility.<br><br>
# Issue the following linux command:<br><span style="color:blue;font-weight:bold;font-family:courier;">sed -n '1 p' data.txt</span><br><br>You should see the first line of the text file displayed.<br><br>
# Issue the following linux command:<br><span style="color:blue;font-weight:bold;font-family:courier;">sed -n '2,5 p' data.txt</span><br><br>What do you think is displayed? (compare with contents in the data.txt text file).<br><br>
# x
 
13,420
edits

Navigation menu