03-04-2019
When I want the last line of a file I use the very simple
tail command.
Maybe I am too simple?
What am I missing from your requirement?
10 More Discussions You Might Find Interesting
1. Infrastructure Monitoring
Tim Bass
03-20-2009 07:02 AM
Source... (0 Replies)
Discussion started by: Linux Bot
0 Replies
2. Infrastructure Monitoring
Tim Bass
03-23-2009 03:45 PM
Source... (0 Replies)
Discussion started by: Linux Bot
0 Replies
3. Shell Programming and Scripting
Hi,
I have gps receiver log..its giving readings .like below
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GPSD,R=1
$GPGSV,3,1,11,08,16,328,40,11,36,127,00,28,33,283,39,20,11,165,00*71... (3 Replies)
Discussion started by: gudivada213
3 Replies
4. Shell Programming and Scripting
Hello,
I try to write a shell script that would list all files on a directory and stop when it finds the first item specified on a find or ls command.
How can I tell to the find or ls command to stop when it finds the first ".doc" file for example ?
Thank you (7 Replies)
Discussion started by: davchris
7 Replies
5. Shell Programming and Scripting
Hi,
I have a file generated like this -
1. Fire SQL and store the formatted output in a temp file
echo "select path, empid, age from emp_tbl" | /usr/sql emp_db 2 > count_file | grep vol > tempFile
2. The tempFile looks like this after the above statement
/vol/emp1 0732 ... (9 Replies)
Discussion started by: angshuman_ag
9 Replies
6. Shell Programming and Scripting
Dear all,
I have encountered some problem here. I prompt the user for input and store it into a data file, eg. key in name and marks so the data file will look like this
andrew 80
ben 75
and the next input is carine 90. So the problem here is i want to print... (2 Replies)
Discussion started by: branred
2 Replies
7. Shell Programming and Scripting
I have a LOG file which looks like this
Import started at: Mon Jul 23 02:13:01 EDT 2012
Initialization completed in 2.146 seconds.
--------------------------------------------------------------------------------
--
Import summary for Import item: PolicyInformation... (8 Replies)
Discussion started by: biztank
8 Replies
8. Shell Programming and Scripting
Hi,
I want to read a live log file line by line and considering those line which start from time stamp;
Below code I am using, which read line but throws an exception when comparing line that does not contain error code
tail -F /logs/COMMON-ERROR.log | while read myline; do... (2 Replies)
Discussion started by: ketanraut
2 Replies
9. Shell Programming and Scripting
Hello,
I have some tab delimited text data,
file: final_temp1
aname val
NAME;r'(1,) 3.28584
r'(2,)<tab>
NAME;r'(3,) 6.13003
NAME;r'(4,) 4.18037
r'(5,)<tab>
You can see that the data is incomplete in some cases. There is a trailing tab after the first column for each incomplete row. I... (2 Replies)
Discussion started by: LMHmedchem
2 Replies
10. Shell Programming and Scripting
Hello,
I have a src code file where I need to uncomment many lines.
The lines I need to uncomment look like,
C CALL l_r(DESNAME,DESOUT, 'Gmax', ESH(10), NO_APP, JJ)
The comment is the "C" in the first column. This needs to be deleted so that there are 6 spaces preceding "CALL".... (7 Replies)
Discussion started by: LMHmedchem
7 Replies
isdnlog(5) Linux System Administration isdnlog(5)
NAME
/var/log/isdn.log - isdn log file
DESCRIPTION
The main purpose of isdnlog is to create a log file with information about all incoming and outgoing calls, namely: this file.
The file has 19 fields, separated by pipe characters "|" with fixed length. The fields are:
1 Time of connect
2 Caller's number (if transmitted)
3 Called number
4 Duration of connection in seconds
5 Duration of connection in 1/100 seconds
6 Time of connect (as usual in seconds since 1970)
7 Number of charge signals received (-1 if you don't get charge signals)
8 I = Incoming or O = Outgoing
9 Cause Code if connection was not established
10 Number of bytes transferred (incoming)
11 Number of bytes transferred (outgoing)
12 Version number of isdnlog
13 ISDN Service Code
14 1 = called by isdn user, 0 = called by analog user
15 Costs per charge unit (e.g. 0.062 in Germany)
16 Currency of charge unit (e.g. EUR in most parts of Europe)
17 Total cost of connection
18 Provider
19 Zone
FILES
/var/log/isdn.log
This file: isdnlog log file.
SEE ALSO
isdnlog(8)
AUTHOR
This manual page was written by Andreas Jellinghaus <aj@dungeon.inka.de>, for Debian GNU/Linux and isdn4linux.
Now maintained by Paul Slootman <paul@debian.org>.
ISDN 4 Linux 3.13 2002/01/31 isdnlog(5)