Search Results

Search: Posts Made By: Hone1975
16,686
Posted By Hone1975
awk 'END { if (f) print x } $0 ~ v && f++; /^--/...
awk 'END { if (f) print x } $0 ~ v && f++; /^--/ { if (f) print x; x = f = 0 } { x = x ? x RS $0 : $0 }' v="^IP=172.18.0.1$" list.txt
Illegal variable name.
16,686
Posted By Hone1975
How I run that awk script in Solaris unix shell?...
How I run that awk script in Solaris unix shell? (Couple of lines, error comes if I run it on one line).
16,686
Posted By Hone1975
Why this thread: This case was very near of my...
Why this thread: This case was very near of my needs and I am very new forum user and I didn't remenber to check is my case in the right place.

Sorry.

What do you mean new line? If I put your...
16,686
Posted By Hone1975
/usr/xpg4/bin/awk: syntax error Context is: ...
/usr/xpg4/bin/awk: syntax error Context is:
>>> END { if (f) print x } $0 ~ v && f++/---- <<<
16,686
Posted By Hone1975
Thank you radoulov and era. Radoulov...
Thank you radoulov and era.

Radoulov solution very near that what I am looking for.

This script (radoulov) print out from tables only those rows which are before IP=x.x.x.x
After IP=x.x.x.x...
16,686
Posted By Hone1975
Thx for your answer. Here is one example. ...
Thx for your answer. Here is one example.

----Table1-----
3,dfs,43,df
4,sd,5,edd
56,df,6,fgdg
IP=172.18.0.1
---Table2---
54,fdgfg,fgdfg
65,dgdfg,yuytr
76,tyuuu,ytur
IP=172.18.0.2...
16,686
Posted By Hone1975
how to???
Hi,

OK. This is part of solutions what I need.
How I can filter out only those tables where is information like IP=172.18.0.1?
Showing results 1 to 7 of 7

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