Answers for "awk string match"

0

get match awk

awk -F 'some_delimiter' '{print $3}' file.txt
#Gets third match pattern between specific delimiter
#Ex
echo 'Hi_New_World!' | awk -F '_' '{ print $3}' 
World!
Posted by: Guest on January-18-2021
0

awk string match

awk -e '$3 ~ /Normal/ {print $1" "$2}' ur_file.txt
#if column $3 match "Normal" print column 1 and 2 with space " "
Posted by: Guest on April-14-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language