Sponsored Content
Full Discussion: Using Awk for stream log
Top Forums Shell Programming and Scripting Using Awk for stream log Post 302278035 by bowbowz on Monday 19th of January 2009 05:21:56 AM
Old 01-19-2009
Using Awk for stream log

Hi Master,

I've log in here
then try parsing log become :

3GPP-IMSI,Calling-Station-Id
528111500111614,6738790448
528111500068173,6738769831
.....


it is possible to use awk?
cause i 've try
awk '
/\Accounting\ /{f=1}
f && /\3GPP-IMSI \:\ String Value\ /{imsi=$4}
f && /\Calling-Station-Id\ \:\ String Value\ /{msisdn=$4}
f && /Parsed /{
s= nas "," imsi "," msisdn
rint s
f=0
}' SBR_FE2_grep.log

and still error

Last edited by otheus; 01-30-2009 at 08:05 AM.. Reason: co0rrected URL
 

10 More Discussions You Might Find Interesting

1. Programming

stream output??

Hi all, I've a structure let's say typdef struct a { int a; int b; char* string} b; I need to make the function smth like readdir(), returning everytime it's called pointer to the next structure. Let's say functions would read the next file in the directory and all the permitions put it in... (2 Replies)
Discussion started by: solvman
2 Replies

2. UNIX for Dummies Questions & Answers

Stream MP3s

What is a good and easy to set up program on Unix FreeBSD for playing streaming MP3s. Where can I get it and how do I install it? This is FreeBSD 4.3. Thanx. (2 Replies)
Discussion started by: ByondF1
2 Replies

3. Programming

File I/O Stream

Hi All, I am trying to read data from two files and then compare them and only print the records on the screen that have a same ID.i.e TAGNO =CUSTOMERNO For Eg My Input Files are (a) Transaction (b) Customer detail The data in file a is like: TagNo Date Time Station... (0 Replies)
Discussion started by: rooh
0 Replies

4. UNIX for Advanced & Expert Users

the stream edditor

:D i have searched through several sites on google for a match up for sed that would go indepth into the workings of this interactive edditor.. I use it every day and it is the edditor of my choice so i know a few tricks but would very much like to get into the more complex uses of sed.. all the... (2 Replies)
Discussion started by: moxxx68
2 Replies

5. Solaris

how to recover writing stream

SunOS 5.8 this command launchs my server: ./some_java_application > stdout.log 2>&1 & tha stdout.log file was deleted Q1) Is there a way to recover or redirect the writing stream without restart tha application? Q2) If not Q1, is there a way to launch the application so I can see the... (3 Replies)
Discussion started by: fabtrix
3 Replies

6. Ubuntu

Stream video

Hello, I have Ubuntu 64 bit 9.04 install dual boot I can't see stream videos through Opera I couldnt see it in Firefox did this: "sudo apt-get install ubuntu-restricted-extras flashplugin-nonfree" Now I can see it in firefox but not in Opera Should not care and just use just Firefox. thanks (0 Replies)
Discussion started by: Pitroadrush
0 Replies

7. UNIX for Dummies Questions & Answers

Get the last value in the input stream

Hello Everyone, The situation is: $ alias rm="sh abc.sh" #abc.sh: read input echo "The input was: " $input $ rm xyz.txt should return "The input was: xyz.txt" Here, I want the alias "rm" to execute the file "abc.sh", where "abc.sh" should take "xyz.txt"... (1 Reply)
Discussion started by: qasim
1 Replies

8. Shell Programming and Scripting

[Video stream] network stream recording with mplayer

Hi I used this command: mplayer http://host/axis-cgi/mjpg/video.cgi -user root -passwd root \ -cache 1024 -fps 25.0 -nosound -vc ffh264 \ -demuxer 3 -dumpstream -dumpfile output.avi It's ok but... Video Playing is very fast! Why? Is it a synch problem? What parameter I have to use for... (1 Reply)
Discussion started by: takeo.kikuta
1 Replies

9. Shell Programming and Scripting

Stream all log files into one file

Here is what I have. 1 main program and it calls several child programs. Each child has its own log file. I want all child logs also to be appended to the main.log so that I have a single log file. I also need individual child logfiles in tact for debug purposes. Need to be able to tail one log... (4 Replies)
Discussion started by: myjunk1
4 Replies

10. Homework & Coursework Questions

Stream editing Issue

here's my statement: sed -i '4s/$/ #/' sed_test_file.txt I want to edit the n'th line (the '4' is for the example) of the file (but you can't just put the n instead of the 4) sed_test_file is a simple text file containig text only I tried to use $urlCounter instead of 4, as urlCounter... (4 Replies)
Discussion started by: ganraveh
4 Replies
ENUM 
IEEE80211_STA_I(9) Internals ENUM IEEE80211_STA_I(9) NAME
enum_ieee80211_sta_info_flags - Stations flags SYNOPSIS
enum ieee80211_sta_info_flags { WLAN_STA_AUTH, WLAN_STA_ASSOC, WLAN_STA_PS_STA, WLAN_STA_AUTHORIZED, WLAN_STA_SHORT_PREAMBLE, WLAN_STA_ASSOC_AP, WLAN_STA_WME, WLAN_STA_WDS, WLAN_STA_CLEAR_PS_FILT, WLAN_STA_MFP, WLAN_STA_SUSPEND, WLAN_STA_PS_DRIVER, WLAN_STA_PSPOLL, WLAN_STA_DISASSOC }; CONSTANTS
WLAN_STA_AUTH Station is authenticated. WLAN_STA_ASSOC Station is associated. WLAN_STA_PS_STA Station is in power-save mode WLAN_STA_AUTHORIZED Station is authorized to send/receive traffic. This bit is always checked so needs to be enabled for all stations when virtual port control is not in use. WLAN_STA_SHORT_PREAMBLE Station is capable of receiving short-preamble frames. WLAN_STA_ASSOC_AP We're associated to that station, it is an AP. WLAN_STA_WME Station is a QoS-STA. WLAN_STA_WDS Station is one of our WDS peers. WLAN_STA_CLEAR_PS_FILT Clear PS filter in hardware (using the IEEE80211_TX_CTL_CLEAR_PS_FILT control flag) when the next frame to this station is transmitted. WLAN_STA_MFP Management frame protection is used with this STA. WLAN_STA_SUSPEND Set/cleared during a suspend/resume cycle. Used to deny ADDBA requests (both TX and RX). WLAN_STA_PS_DRIVER driver requires keeping this station in power-save mode logically to flush frames that might still be in the queues WLAN_STA_PSPOLL Station sent PS-poll while driver was keeping station in power-save mode, reply when the driver unblocks. WLAN_STA_DISASSOC Disassociation in progress. This is used to reject TX BA session requests when disassociation is in progress. DESCRIPTION
These flags are used with struct sta_info's flags member. AUTHOR
Johannes Berg <johannes@sipsolutions.net> Author. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 ENUM IEEE80211_STA_I(9)
All times are GMT -4. The time now is 05:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy