Search Results

Search: Posts Made By: biker_mike
5,914
Posted By biker_mike
Oops you're right about the case where COMMUNITY=...
Oops you're right about the case where COMMUNITY= is in the stream. Try this, it works:

$ echo "Attempting to contact (ADDRESS=(COMMUNITY=PROTOCOL=TCP)(Host=chamar)(Po
rt=1541))"|tr -d ")" | sed...
5,914
Posted By biker_mike
This is even better: $ echo "Attempting to...
This is even better:

$ echo "Attempting to contact (ADDRESS=(PROTOCOL=TCP)(Host=chamar)(Port=1541))"
|tr -d ")" | cut -d"=" -f5

Should've thought of this the first time.
5,914
Posted By biker_mike
I like to use awk because its pretty powerful,...
I like to use awk because its pretty powerful, but I also like to try to achieve the same results with other tools. Here is my bid which works every time:

$ echo "Attempting to contact...
Showing results 1 to 3 of 3

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