xlog-discussion
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xlog-discussion] serial numbers from xlog


From: Daniel Schlieper
Subject: [Xlog-discussion] serial numbers from xlog
Date: Wed, 10 May 2006 00:35:34 +0200 (CEST)

Hello,

I had a weird idea to get serial numbers for a contest: Make xlog to write 
after every qso, and then just add the line number to 599000. Using bash, 
it would look like this:

$ echo "599000 +" `cat /home/daniel/.xlog/test.xlog | wc -l` | bc

or, if you prefer $() notation:

$ echo "599000 +" $(cat /home/daniel/.xlog/test.xlog | wc -l) | bc

However, if I use this as macro in gmfsk

$( $( echo "599000 +" $(cat /home/daniel/.xlog/test.xlog | wc -l) | bc ))

... I fail to get a 599003 or whatever, but some error messages about 
"failed to execute child process".

I agree that the whole idea is crude and not worth following up, there are 
certainly elegant ways for directly getting a QSO number from xlog.

73 Daniel M0ERA, Oxted, Surrey 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]