Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Read from a file in unix

$
0
0
Hi All
I have a file type such as
Code:

[TEST]
client=SSH
server=testing
user=abc
password=xyz
dir=home

[Run]
client=putty
server=running
user=pqr
password=sas
dir=main

[dump]
client=nothing
server=down
user=aaa
password=bbb
dir=lost

I should pass the two value two the script and it should give the result
example ./script Run user
It should give result pqr

Viewing all articles
Browse latest Browse all 16232

Trending Articles