Merge pull request #50 from blaszczakphoto/patch-1

awk: how to display only first column of text with
pull/51/head
Igor Chubin 5 years ago committed by GitHub
commit 33c4382f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,3 +12,6 @@ printf '1 2 3' | awk 'BEGIN {OFS=":"}; {print $1,$2,$3}'
# search for a paragraph containing string
awk -v RS='' '/42B/' file
# display only first column from multi-column text
echo "first-column second-column third-column" | awk '{print $1}'

Loading…
Cancel
Save