Hi,
I need to extract the first character of second column of my file. If the condition matches, then I need to print the 2nd and 3rd column as my output
I tried below mentioned query but it was not working
awk -F'|' '$2~/^5/' Sgn_group.txt
File Name : Sgn_group.txt
country code address
SG|567|jalal street
SG|456|petaling
SG|587|Srinagar
Output:
567|jalal street
587|Srinagar
kindly help me how can I get this output.