Search Results

Search: Posts Made By: kumars2102
2,608
Posted By Ygor
Try...$ echo...
Try...$ echo 'oracle=user=name/pa/ssword@database' > sample.cfg

$ eval $(awk '/oracle/{
if(match($0,/=[^/]*/))
printf "user=\047%s\047\n", substr($0,RSTART+1,RLENGTH-1)
...
2,608
Posted By Ygor
Try...$ echo 'oracle=username/password@database'...
Try...$ echo 'oracle=username/password@database' > sample.cfg

$ set -- $(awk -F '[=/@]' '/oracle/{print $2,$3,$4}' sample.cfg)

$ echo user is $1, pass is $2, db is $3
user is username, pass is...
2,608
Posted By PikK45
I would suggest you to use " as a delimiter for...
I would suggest you to use " as a delimiter for awk :)
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy