I have a file that I need to look up a value by key using a shell script. The file looks like:
HereIsAKey This is the value
How can I do something like:
MyVar=Get HereIsAKey
and then MyVar should equal "This is the value". The key has no whitespace and the value should be everything following whitespace after the key.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…