From below text in file:
current_build: 22
previous_build: 55
I am only trying to grep number value of current_build.
When run following command
grep -o -E '[0-9]+' textfile
The output is both number like below
22
55
How do i only grep the value 22
awk '/current_build/{print $2}' file