11-29-2007
Outputting formatted Result log file from old 30000 lines result log<help required>
Well I have a 3000 lines result log file that contains all the machine data when it does the testing... It has 3 different section that i am intrsted in
1) starting with "20071126 11:11:11 Machine Header 1"
1000 lines...
"End machine header 1"
2) starting with "20071126 12:12:12 Machine Header 2"
1000 lines...
"End machine header 2"
2) starting with "20071126 12:12:12 Machine Header 3"
1000 lines...
"End machine header 3"
With this their are a lot of junk data also..
I just want to grab these 3 headers and put in into different file With each header having his own sections
eg:
===================Header1 Start====================
<it's content>
===================Header1 End ====================
how I can do this .. I want something like this
./<New script> <old log file>
and it gives me a new log file.
Can you please help me in making this... I want to make it in bash scripting.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is the file am having:
"40","1G1AL55 ",30482,9000
"40","1G1ZT58 ",29098,10600
"40","1G1AL15 ",29222,9400
"46","1G6KD57 ",3083,28400
"46","1G6KD57 ",27909,25200
"49","1G1ZU57 ",16391,13900
"49","1G2ZG58 ",28856,12400
I want to display the output in three files... (23 Replies)
Discussion started by: dave_nithis
23 Replies
2. UNIX for Dummies Questions & Answers
hello
showrev -p | wc -l
returns:
381
What to do in case I want to have this output:
number of lines returned by showrev -p is: 381
thx (3 Replies)
Discussion started by: melanie_pfefer
3 Replies
3. Shell Programming and Scripting
Hi all,
I have many files that have 1 or more occurrences of the information I want. There are two distinct sets of information. I want get this info and place each occurrence in its own file.
The 3 lines before one set are
this grid
00 01 02
16 17 18
**40 lines of code I want to... (5 Replies)
Discussion started by: gobi
5 Replies
4. Shell Programming and Scripting
What syntax is required to start the result in a new line (7 Replies)
Discussion started by: sapan123
7 Replies
5. Shell Programming and Scripting
OS : Linux 2.6.9-67 - Red Hat Enterprise Linux ES release 4
Looking for a script that reads the following log files that gets generated everynight between 2 - 5am
Master_App_20090717.log
Master_App1_20090717.log
Master_App2_20090717.log
Master_App3_20090717.log... (2 Replies)
Discussion started by: aavam
2 Replies
6. Shell Programming and Scripting
Hello,
Please advise. Scoured this site, as well as google for answers. However if you do not know what to search for, it's a bit hard to find answers.
INPUT:
ACTASS=
802
BASECOS=
279
COSNCHG=
3
CUSCOS=
52
UPLDCOS=
2
DESIRED OUTPUT:
ACTASS=802
BASECOS=279 (13 Replies)
Discussion started by: abacus
13 Replies
7. Shell Programming and Scripting
Hi, guys. I have a question. Please help me~
I got an text, recording the weather reports. It is the Attachment "Weather Forcast_original.txt"
I want to get the required result like the attachment "Weather Forcast_formatted.txt"
I thought about the loop, the conditions, but I'm surely... (3 Replies)
Discussion started by: franksunnn
3 Replies
8. Shell Programming and Scripting
Hi I would appreciate your help with this.
I have a output file from a command. It is broken based on initial of the users. Exmaple of iitials MN & SS. Under each section there is information pertaining to the user however each section can have different number of lines. MY challenge is to ... (5 Replies)
Discussion started by: mnassiri
5 Replies
9. Shell Programming and Scripting
Hi Gurus,
I have requirement to compare current result with previous reuslt.
The sample case is below.
1 job1 1
1 job2 2
1 job3 3
2 job_a1 1
2 job_a2 2
2 job_a3 3
3 job_b1 1
3 job_b2 2
for above sample file, GID is group ID, for input line, the job run... (1 Reply)
Discussion started by: ken6503
1 Replies
10. Shell Programming and Scripting
HI,
I have 2 text files. file1 and file2.
file1.txt (There are no duplicates in this file)
1234
3232
4343
3435
6564
6767
1213
file2.txt
1234,wq,wewe,qwqw
1234,as,dfdf,dfdf
4343,asas,sdds,dsds
6767,asas,fdfd,fdffd
I need to search each number in file1.txt in file2.txt's 1st... (6 Replies)
Discussion started by: Little
6 Replies
uulog(1) General Commands Manual uulog(1)
NAME
uulog - display entries in the UUCP log file.
SYNOPSIS
uulog [-#] [-n lines] [-sf system] [-u user] [-DSF] [--lines lines] [--system system] [--user user] [--debuglog] [--statslog] [--follow]
[--follow=system]
DESCRIPTION
The uulog program can be used to display entries in the UUCP log file. It can select the entries for a particular system or a particular
user. You can use it to see what has happened to your queued jobs in the past. Different options may be used to select which parts of the
file to display.
OPTIONS
-#, -n lines, --lines lines
Here '#' is a number; e.g., `-10'. The specified number of lines is displayed from the end of the log file. The default is to dis-
play the entire log file, unless the -f, -F, or --follow options are used, in which case the default is to display 10 lines.
-s system, --system system
Display only log entries pertaining to the specified system.
-u, --user user
Display only log entries pertaining to the specified user.
-D --debuglog
Display the debugging log file.
-S, --statslog
Display the statistics log file.
-F, --follow
Keep displaying the log file forever, printing new lines as they are appended to the log file.
-f system, --follow=system
Keep displaying the log file forever, displaying only log entries pertaining to the specified system.
Standard UUCP options:
-X type, --debug type
Turn on particular debugging types. The following types are recognized: abnormal, chat, handshake, uucp-proto, proto, port, config,
spooldir, execute, incoming, outgoing. --debug option may appear multiple times. A number may also be given, which will turn on that
many types from the foregoing list; for example, --debug 2 is equivalent to --debug abnormal,chat.
-I file, --config
Set configuration file to use.
-v, --version
Report version information and exit.
--help
Print a help message and exit.
SEE ALSO
uucp(1)
AUTHOR
Ian Lance Taylor <ian@airs.com>. Text for this Manpage comes from Taylor UUCP, version 1.07 Info documentation.
Taylor UUCP 1.07 uulog(1)