Changes

Jump to: navigation, search

Tutorial11: Sed & Awk Utilities

73 bytes added, 4 September
Using the awk Utility
'''Examples:'''
<span style="font-family:courier;">'''awk 'NR == 3 {print}' text.txt''' (print 3rd line)<br>'''awk 'NR >= 1 && NR <= 5 {print}' text.txt''' (print lines 1 to 5)<br>'''xawk '/NOTE:/ {print]' text.txt''' (xprint lines that contain the pattern: "NOTE:")<br>'''x''' (x)<br><br>'''x''' (x)<br>'''x''' (x)<br>'''x''' (x)<br>'''x''' (x)<br><br></span>
=INVESTIGATION 1: USING THE SED UTILITY=

Navigation menu