Bash script: regexp reading numerical parameters from text file

Posted by Andrey Kazak on Stack Overflow See other posts from Stack Overflow or by Andrey Kazak
Published on 2010-05-25T15:24:32Z Indexed on 2010/05/26 15:41 UTC
Read the original article Hit count: 228

Filed under:
|
|
|

Greetings!

I have a text file with parameter set as follows:


NameOfParameter Value1 Value2 Value3 ... ...


I want to find needed parameter by its NameOfParameter using regexp pattern and return a selected Value to my Bash script. I tried to do this with grep, but it returns a whole line instead of Value.

Could you help me to find as approach please?

© Stack Overflow or respective owner

Related posts about bash

Related posts about file