Search Results

Search: Posts Made By: bluethunder
9,643
Posted By bluethunder
This is even better.:b:
This is even better.:b:
9,643
Posted By bluethunder
[QUOTE=Scrutinizer;302381359]Something like this?...
[QUOTE=Scrutinizer;302381359]Something like this? A couple of adjustments were needed...
awk 'BEGIN{fmt="%-15s %-32s %-8s %-33s %s\n"}
{sub(/[^A-Z]*/,"")}
/^VIRTUAL/ ...
5,992
Posted By bluethunder
I may use both these commands in a shell script...
I may use both these commands in a shell script and achieve the same. :p
9,643
Posted By bluethunder
@summer, How do i use the input file/data in...
@summer,
How do i use the input file/data in the while loop. Is it something like while(`cat input.txt`) or how ?

@Scrutinizer & others.
I did use the earlier code by Scrutinizer to convert my...
9,643
Posted By bluethunder
Enhancement on its way
I have got an another set of input files, which is similar to the older ones..but with additional column and data.
I will try my hand on it for the next couple of days based on Scrutinizer's...
9,643
Posted By bluethunder
I understood the printf line perfectly but the...
I understood the printf line perfectly but the others were confusing & now you have cleared it for me.:b:

Yes, I can see only one entry of Default_Router in the col 3 , where as it should be...
9,643
Posted By bluethunder
Looks perfect scrutinizer :b:...but the only...
Looks perfect scrutinizer :b:...but the only missing part is the text " Default router" in the column 3 .

do you mind explaining this simple code .:D
9,643
Posted By bluethunder
Files attached.
Here we go!!!

I am attaching the input files as you have requested.

file 1 : Raw input file from the system.
file 2 : File after running my sed commands.
file 3 : File after running your...
9,643
Posted By bluethunder
Success
Thanks for the timely help rad. Your code does the job without shuffling the output.

I did test it for 15+ rows of actual inputs and it worked like a charm. I did some adjustments to the code (...
9,643
Posted By bluethunder
Apologies & thanks Scrutinizer. I cant really...
Apologies & thanks Scrutinizer.
I cant really paste the actual input as those details are sensitive information .
So i had created a sample form of ip addresses/names for the input.

The earlier...
9,643
Posted By bluethunder
Works
It works perfectly for the test inputs a provided in earlier posts. It doesnt work for the actual inputs(I cant put my actual servers ip address in the forum;))'
what do i have to modify for taking...
9,643
Posted By bluethunder
We are half way thro..
I get an output like this.:eek: the data for each rows are juggled..


VIRTUAL SERVICE POOL MEMBER
8184 192.168.2.4:8184
192.168.1.1 8181 ...
9,643
Posted By bluethunder
Thanks for the simple code
Thanks for the simple code. But I am not able to obtain the output.
Expected output is little different.
INPUT as follows. It doesnt have any <> symbols.
VIRTUAL 192.168.1.1
SERVICE 8181
POOL...
8,089
Posted By bluethunder
Yes I saw that :b:...thats why i thanked you :D ...
Yes I saw that :b:...thats why i thanked you :D

---------- Post updated at 03:27 PM ---------- Previous update was at 11:52 AM ----------



Sorry about the confusion jsmithstl.

I have...
9,643
Posted By bluethunder
Edit: Inserted for clarity after thread...
Edit: Inserted for clarity after thread splitting.




And you want only the first entry for col_2/4 per record?
[/quote]

Yes. I need only the first entry as the rest of the entries are...
8,089
Posted By bluethunder
Thanks radoulov...much appreciated ... hope...
Thanks radoulov...much appreciated ...

hope i can get some answers to my questions..its been haunting me for the last couple of days.

cheers ~ V
9,643
Posted By bluethunder
Rows to columns transposing and reformating.
----File attached.

Input file
===========
COL_1 <IP Add 1>
COL_2 <Service1>
COL_3 <ABCDEFG>
COL_4 <IP ADD:PORT>
COL_4 <IP ADD:PORT>

COL_1 <IP Add 2>
COL_2 <Service2>
COL_2...
Showing results 1 to 17 of 17

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