Sponsored Content
Full Discussion: Awk limitation
Top Forums Shell Programming and Scripting Awk limitation Post 302136885 by ghostdog74 on Thursday 20th of September 2007 08:01:23 AM
Old 09-20-2007
you want to get : ** eee eee ee ee ee eee 2007 right?
i have no problem with your code:
Code:
# ./test.sh
** eee eee ee ee ee eee 2007

i use gawk. Is it always the last 3rd record ? If it is,
Code:
awk '
{  
   last3=last2
   last2=save
   save=$0
}END {
   print last3
}' "file"

output:
Code:
./testnew.sh
** eee eee ee ee ee eee 2007

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

find limitation

Hi , i'm trying to use "find "command with "-size "option but i encounter 2gb file limitation. Can you confirm this limitation ? Is there a simple way to do the same thing ? My command is : <clazz01g-notes01>/base/base01 # find /base/base01 -name '*.nsf' -size +5242880000c -exec ls... (2 Replies)
Discussion started by: Nicol
2 Replies

2. HP-UX

HP-UX 11i - File Size Limitation And Number Of Folders Limitation

Hi All, Can anyone please clarify me the following questions: 1. Is there any file size limitation in HP-UX 11i, that I can able to create upto certain size of file (say 2 GB) and not more then that???? 2. At max. how many files we can able to keep inside a folder???? 3. How many... (2 Replies)
Discussion started by: sundeep_mohanty
2 Replies

3. Shell Programming and Scripting

Limitation of ls command

Hi, Iam using an alias to get the file count from one directory using normal ls command like ls file*|wc -l.If my file increases more than 35,000 ,my alias is not working.It shows that arg list too long. is that can be limitation of ls or problem in alias? I would appreciate if anyone can... (2 Replies)
Discussion started by: cskumar
2 Replies

4. Shell Programming and Scripting

Is this a bug or a limitation?

Hi, I'm having a problem with a while loop syntax that doesn't seem to loop correctly. TODAY=`date +%d%m%Y` while read hostname #for hostname in $(cat $CONFIG) do OUTFILE=/tmp/health_check.$hostname.$TODAY if then touch $OUTFILE func_header else rm $OUTFILE ... (2 Replies)
Discussion started by: gilberteu
2 Replies

5. UNIX for Dummies Questions & Answers

grep limitation

Hello, I am looking for a way to get around an issue, as I am using the grep command in a very common situation: grep ^50 File.*.txt | "some awk process" My problem is that bash throws me an error on the grep command if the directory in question contains several thousands files. ... (6 Replies)
Discussion started by: Indalecio
6 Replies

6. HP-UX

Limitation on *.ext

Is there a size limit when passing an argument using wildcards? I.E. when I pass an argument in the form (like) "ftp_auto *.txt" - is there a limitation on the size of UNIX expanding "*.txt" ? (1 Reply)
Discussion started by: vslewis
1 Replies

7. UNIX for Advanced & Expert Users

size for sum variable limitation on awk

Hello first, truth been told, I'm not even close to be advanced user. I'm posting here because maybe my question is complicated enough to need your expert help I need to use awk (or nawk - I don't have gawk) to validate some files by computing the total sum for a large numeric variable. It... (1 Reply)
Discussion started by: cwitarsa
1 Replies

8. Shell Programming and Scripting

Limitation on rm command

Hi all, does any one know ,if there is any limitation on rm command limitation referes here as a size . Ex:when my script try to rum rm command which have size of nearly 20-22 GB ..CPU load gets high ? if anyone know the relation of CPU load and limitation of rm command . (8 Replies)
Discussion started by: niteshagrawal06
8 Replies

9. UNIX for Dummies Questions & Answers

Limitation in addition

whats wrong with this addition? Whats the maximum number of digits can be handled? pandeeswaran@ubuntu:~/Downloads$ const=201234454654768979799999 pandeeswaran@ubuntu:~/Downloads$ let new+=const pandeeswaran@ubuntu:~/Downloads$ echo $new -2152890657037557890 pandeeswaran@ubuntu:~/Downloads$ (4 Replies)
Discussion started by: pandeesh
4 Replies

10. AIX

What is the limitation in AIX?

Hi All, i got few questions... 1) What is the maximum number of files that we can save under a single directory in AIX ? (* we have enough storage/disk space) 2) And what is the maximum number of sub - directories in side a directory? I know that...every directory is a (special)... (11 Replies)
Discussion started by: System Admin 77
11 Replies
APRSMON(8)						     Linux Programmer's Manual							APRSMON(8)

NAME
aprsmon - monitor APRS AX.25 traffic for javAPRS SYNOPSIS
aprsmon [-a] [-m] [-r] [-k minutes] [-p port] [-t title] [-i infofile] DESCRIPTION
Aprsmon uses SOCK_PACKET facilities to provide a network monitor of all AX.25 UI text traffic heard by the system. It is based on lis- ten(1). Aprsmon collects (-m) or displays standard AX.25 UI text frames in a format similar to that output by a standard TNC in "Monitor ON" mode and is intended to be used with programs like javAPRS which wish to see a TNC data stream over a TCP connection. When the aprsmon master has been running for a while and a new aprsmon slave starts up, first all saved up reports are sent, then a title line indicating the beginning of live data is sent, and new reports are sent as received. Compressed position and telemetry reports as generated by the APRS Mic Encoder are translated into the conventional uncompressed APRS Micro-Interface-Module (MIM) telemtry format so that these stations are visible in javAPRS. Reports containing a TheNet X1J4 beacon header are also edited to strip off the header making these nodes visible in javAPRS as well. OPTIONS
-a Allow for the monitoring of outgoing frames as well as incoming ones. -r Choose "raw" mode which allows non-printable data through. -p port Monitor only those frames received on a particular port, by default all AX.25 interfaces are monitored. -m "Master" mode. Retain monitored data for the number of minutes specified with the -k option in a shared memory segment. -k minutes Retain monitored packets going back the given number of minutes. Default is 30. -t title Sets the javAPRS title string. Default is "Live data from Linux." -i infofile Infofile is the path to the file that the aprsmon master writes the shared memory segment and semaphore id's into. Default is "/var/ax25/aprsmon.info." javAPRS CONFIGURATION Set up one aprsmon master running on your system to collect historical data going back a while. You will probably want to set up an /etc/rc.d/init.d script for this. aprsmon -a -m& Add an entry into /etc/services with the port number you want javAPRS to connect on. For example: aprs 14439/tcp # APRS monitor on 144.39 Add an entry into /etc/inetd.conf for this service: aprs stream tcp nowait root /usr/sbin/aprsmon aprsmon -a To test, simply "telnet localhost aprs". To use with javAPRS, set, for example, <PARAM name = "dataFile1" value = "netc:14439:localhost"> in your HTML file as described in the javAPRS documentation, and then use appletviewer to run javAPRS: appletviewer mydemo.html Mic-E to MIM Translation The Mic-E reduces the duration of packet noise on a voice frequency by encoding its data in a compressed form, some of which is binary. Some APRS-decoding software, notably javAPRS, is unable to deal with this data. To solve this problem aprsmon expands the Mic-E packet into one or two MIM packets as follows: @ddhhmmzDDMM.hhN/DDDMM.hhW$cse/spd/E>mon/Mm/status T#MIC,aaabbbcccdddeeefffComments ddhhmm is the UTC day and time the packet was received by the host running aprsmon. DDMM.hhN is the latitude. / is the symbol table selection (/ or ). DDDMM.hhW is the longitude. $ is the symbol. cse,spd are course and speed. E is the type of Mic-Encoder: E - TAPR Mic-Encoder T - Kenwood TH-D7 m is the status message number, and status is the status message number expanded as follows: 0 - Off duty.. 1 - Enroute... 2 - In Service 3 - Returning. 4 - Committed. 5 - Special... 6 - PRIORITY.. 7 - EMERGENCY. aaa,bbb,ccc,ddd,eee,fff are the values of the telemetry channels. FILES
/etc/ax25/axports /var/ax25/aprsmon.info SEE ALSO
call(1), listen(1), beacon(1), ax25(4), axattach(8), http://www.bridge.net/~sdimse/javAPRS.html, http://www.tapr.org, http://www.aprs.net, MIC-E.TXT,TELEMTRY.TXT,PROTOCOL.TXT AUTHOR
Alan Crosswell, n2ygk@weca.org Linux 9 February 1999 APRSMON(8)
All times are GMT -4. The time now is 03:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy