Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 276 Bytes

text-manipulation.md

File metadata and controls

29 lines (16 loc) · 276 Bytes

text manipulation

awk

Get a specific column

# print second column
awk '{print $2}'

sed

Delete all lines matching a pattern

sed -i '/pattern to match/d' ./infile

Prepend a file

sed -i '1i header line' ./infile