Search Results

Search: Posts Made By: rtsiahaan
4,480
Posted By rtsiahaan
Corona688, Awesome! Quite a complex scripting. ...
Corona688,
Awesome! Quite a complex scripting.
Once again thank you for your patience and help.
4,480
Posted By rtsiahaan
The desired output would be as follows: ...
The desired output would be as follows:

76-145-294 856342 4812 2 4798 4155 6375 424 669
76-145-294 856341 4800 2 4798 6380 8695 638 858

Thanks
4,480
Posted By rtsiahaan
Thanks for your response. Sorry I was just...
Thanks for your response.

Sorry I was just trying to simplified the log file. The actual log file is attached ( again truncated with 2 dataset only and I have >> 300 dataset). The key pattern I...
4,480
Posted By rtsiahaan
Sorry about not answering your questions. Its...
Sorry about not answering your questions. Its works but did not output in a row as desired. I will post the outcome of the last script. Thanks.

---------- Post updated 02-28-12 at 08:19 AM...
4,480
Posted By rtsiahaan
My pattern to grep are essentially /Line:/ then...
My pattern to grep are essentially /Line:/ then print after Line: i.e 100, next pattern to grep /FSP:/ and print Value 100, next /LSP:/ print Value 300, /SR:/ print 4 & /RL:/ print 4000..then next...
4,480
Posted By rtsiahaan
I wanted to get a result that I can put to excel...
I wanted to get a result that I can put to excel eventually.
Header---> LineName FSP LSP SR RL
Result----> Test1 100 300 4 4000 ...
4,480
Posted By rtsiahaan
Great!.. almost there. I wanted to get in a row...
Great!.. almost there. I wanted to get in a row for each unique Line instead of separate new line.

Thanks.
4,480
Posted By rtsiahaan
AWK: Grep Pattern and print help
I wanted to get outcome from a big file with pattern quoted:
Line FSP LSP SR RL
Test1 100 300 4 4000
Test2 1 300 2 300

Any help is greatly appreciated. Thank you.
2,849
Posted By rtsiahaan
Thank you for your comment. 1. My Linux does...
Thank you for your comment.
1. My Linux does not have nawk so I was trying to run awk. Typed "which nawk" returned with ... no nawk in......
2. With awk, the posted original code did not work....
2,849
Posted By rtsiahaan
I revisted the code and try few things on the...
I revisted the code and try few things on the syntax. I got this to work with the following syntax:

awk '/HANDVEL/ (a=$2), /^[0-9]/ {for(i=1;i<=NF;i+=2)print a,$i,$(i+1)}' input

However it...
2,849
Posted By rtsiahaan
Still no output.
Still no output.
2,849
Posted By rtsiahaan
No output. I tried awk '/HANDVEL/ {print $2}'...
No output. I tried awk '/HANDVEL/ {print $2}' myfile and got all my HANDVEL Values . This suggested that awk works.
2,849
Posted By rtsiahaan
Thank you . I am currently running Red Hat Linux...
Thank you . I am currently running Red Hat Linux 2.1? and nawk is not available. Any suggestion of executing with regular awk or gawk.
2,849
Posted By rtsiahaan
Extract Velocity Data (Loc, Time, Velocity)
Hi ,

I am just learning awk and wanted to do the following :

Data (Velocity Data) Function of Hanvdel with time/velocity pair;

HANDVEL 20288
20 9243 160 10658 204 11365 336 12651
444...
Showing results 1 to 14 of 14

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