Search Results

Search: Posts Made By: pierrebjarnfelt
3,221
Posted By pierrebjarnfelt
Now I need to search for two patterns on the same...
Now I need to search for two patterns on the same line.

*IP= + *NM=

I have tried this without any success.



Can you advice?
3,221
Posted By pierrebjarnfelt
That did the trick !!! Why didn't I think of...
That did the trick !!!
Why didn't I think of that??

Thanks anyway..

/Pierre
3,221
Posted By pierrebjarnfelt
Hi agian, sorry but I have tried everything...
Hi agian,

sorry but I have tried everything so here are a pice of my orignal file.

i3421 cisco_2960 ty-3 *IP=148.138.210.226 *NM=typ_2960_ty_3 *CDP3 *sv1 *login_typass l_090212
i5432...
3,221
Posted By pierrebjarnfelt
Thanks. I'll giv it a try. I forgot to...
Thanks.
I'll giv it a try.

I forgot to tell you what I am trying to do this on a Windows machine with UnxUtils "installed".

Your right!!!
I will do better in the future to show what I have...
3,221
Posted By pierrebjarnfelt
Find a pattern and print next all character to next space
Hi,
I have a big inventory file that is NOT sorted is any way.
The file is have "tagged" information like the ip address "*IP=" or the name "*NM=" .
How do I get just the ip address or the name...
Showing results 1 to 5 of 5

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