02-14-2008
good that you found it useful!!!
check out the man pages for tail, awk and grep to understand how it works.
In particular, check the switches I've used for each command.
Don't think I am being rude to you.
You must have heard the good old story where the fisherman taught a starving person to fish, rather than giving him few of his catch :-)
cheers
maverix
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to create a script that does the following:
1. Read the file for the occurrences of "EXECUTE" and "END" strings.
There will be several occurrences of EXECUTE and END strings on the file.
2. The resulting lines in #1, needs to be searched for the word... (11 Replies)
Discussion started by: racbern
11 Replies
2. Shell Programming and Scripting
Hi Gurus,
I have a file say for ex. file1 which has 3500 lines in it which are different account numbers and another file (file2) which has 230000 lines in it. I want to read all the lines in file1 and delete all those lines from file2 which has that same pattern as in file1. I am not quite... (4 Replies)
Discussion started by: toms
4 Replies
3. Shell Programming and Scripting
hi,
I have the following file
hello
world
this
is
to
say
bye
to
everyone
so
bye
I want to get the lines from hello to the first bye inclusive into another file?
how can I do this (11 Replies)
Discussion started by: JamesByars
11 Replies
4. Shell Programming and Scripting
Hi All,
I have a small query. I have a file containing the following lines
File 1:
29-Jul-2011 GMT Static data requires update <Extraction should start here>
-----------
-----------
--------------------
-----------------------
----------- <should stop here>
Pattern1 will be time... (2 Replies)
Discussion started by: gangii87
2 Replies
5. Shell Programming and Scripting
Thanks for the help yesterday. I have a little modification today,
I am trying the following:
i have a log file of a webbap which logs in the following pattern:
2011-08-14 21:10:04,535 blablabla ERROR Exception1 blablabla
bla
bla
bla
bla
2011-08-14... (2 Replies)
Discussion started by: ppolianidis
2 Replies
6. Shell Programming and Scripting
Guys,
I am trying the following:
i have a log file of a webbap which logs in the following pattern:
2011-08-14 21:10:04,535 blablabla ERROR blablabla
bla
bla
bla
bla
2011-08-14 21:10:04,535 blablabla ERROR blablabla
bla
bla
bla
... (6 Replies)
Discussion started by: ppolianidis
6 Replies
7. Shell Programming and Scripting
Greetings experts. Searched the forums (perhaps not hard enough?) - Am searching for a method to capture all output from a log file following the nth occurrence of a known string.
Background:
Using bash, I want to monitor my Oracle DB alert log file. The script will count the total # of... (2 Replies)
Discussion started by: cjtravis
2 Replies
8. Shell Programming and Scripting
I need help with extract/print lines till stop pattern. This needs to happen after every 3rd occurrence of start pattern and continue till end of file. Consider below is an example of the log file. my start pattern will be every 3rd occurrence of ERROR_FILE_NOT_FOUND and stop pattern will be... (5 Replies)
Discussion started by: NSS
5 Replies
9. UNIX for Beginners Questions & Answers
Hi all,
I'm looking for a way (sed or awk) to delete multiple lines between blank lines containing two patterns ex:
user: alpha
parameter_1 = 15
parameter_2 = 1
parameter_3 = 0
user: alpha
parameter_1 = 15
parameter_2 = 1
parameter_3 = 0
user: alpha
parameter_1 = 16... (3 Replies)
Discussion started by: ce9888
3 Replies
10. UNIX for Beginners Questions & Answers
Hi, I need to print lines which are matching with start pattern "SELECT" and END PATTERN ";" and only select the last "select" statement including the ";" .
I have attached sample input file and the desired input should be as:
INPUT FORMAT:
SELECT
ABCD,
DEFGH,
DFGHJ,
JKLMN,
AXCVB,... (5 Replies)
Discussion started by: nani2019
5 Replies
LEARN ABOUT DEBIAN
undocumented
UNDOCUMENTED(7) Linux Programmer's Manual UNDOCUMENTED(7)
NAME
undocumented - No manpage for this program, utility or function.
DESCRIPTION
This program, utility or function does not have a useful manpage. Before opening a bug to report this, please check with the Debian Bug
Tracking System (BTS) at <http://bugs.debian.org/> if a bug has already been reported. If not, you can submit a wishlist bug if you want.
If you are a competent and accurate writer and are willing to spend the time reading the source code and writing good manpages please write
a better man page than this one. Please contact the package maintainer and copy man-pages@qa.debian.org in order to avoid several people
working on the same manpage.
Even if you are not an accurate writer, your input may be helpful. Writing manual pages is quite easy, the format is described in man(7).
The most important and time-consuming task is to collect the information to be put in the new manpage.
DIAGNOSTICS
It is possible that the man page for the command you specified is installed and that your manual page index caches are out of sync. You
should try running mandb(8).
Try the following options if you want more information:
foo --help, foo -h, foo -?
info foo
whatis foo, apropos foo
dpkg --listfiles foo, dpkg --search foo
locate '*foo*'
find / -name '*foo*'
Additionally, check the directories /usr/share/doc/foo, /usr/lib/foo.
The documentation might be in a package starting with the same name as the package the software belongs to, but ending with -doc or -docs.
If you still didn't find the information you are looking for you might consider posting a call for help to debian-user@lists.debian.org.
SEE ALSO
info(1), whatis(1), apropos(1), dpkg(8), locate(1), find(1), updatedb(1), undocumented(3), man(7), mandb(8), missing(7).
Debian GNU/Linux August 24th, 2003 UNDOCUMENTED(7)