Shell Script for Searching text with variable and replace it with content -
im new shell script, need search file given variable, , if file contains variable replace variables alias
the text thing like:
74304050 = +4574304050@voip1.local 74304051 = +4574304051@voip1.local 20304050 = +4520304050@voip2.local 20304051 = +4520304051@voip2.local
so if use call shell script 20304050 +4520304050@voip1.local
how can done, need calling aliases , rewriting them in opensips config file?
it's bit underspecified, want?
awk -v number=20304050 '$1 == $number { print $3 }' file
Comments
Post a Comment