One way:
awk -F: '$1=="Account number"{print $2;exit;}' file
I assume you want to stop the moment you find the first occurence in the file. If you want to find occurrences in every line of the file, just remove the exit
.
One way:
awk -F: '$1=="Account number"{print $2;exit;}' file
I assume you want to stop the moment you find the first occurence in the file. If you want to find occurrences in every line of the file, just remove the exit
.