I have many files on UNIX and wish to fetch number in that file associated with a specified pattern.
Most of the file will have a unique pattern in file like below
some text abc
some text abc
some text abc
(3 rows)
I want to print only number 3
using awk.
The number could vary from file to file, it could be 35644 or any numeric value as well.
I want to find that number using awk not sed or grep as HP unix doesn't support advanced sed/grep features.