grep: group capturing April 9, 2023 by Tarik You’ll need to use a look behind assertion so that it isn’t included in the match: grep -Po '(?<=scheme_version":)[0-9]+'