file is:
BASH.NIR
SH.ABI
I want the awk script to show:
User is NIR, SHELL is BASH
User is ABI, SHELL is SH
I don't know how to split a parameter by char. The idea is:
cat file.txt | awk '{print "User is " afterDot($1) ", SHELL is " beforeDot($1)}'