04-29-2009
since 1 week ago, have you spent time reading up on awk?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
i'm making now a bash script, that runs some compiler... i want to take only errors form its output eg:
output:
bla bla bla
...
erros is 1324546
the bla bla bla
bla bla bla...
...
and i want to get only
erros is 1324546
the bla bla bla (11 Replies)
Discussion started by: miechu
11 Replies
2. Shell Programming and Scripting
hi guys! I`ll really appreciate your help.
The situation is:
i have a log file, and i need to get the needed lines from it.
linecount=$(cat -n http.log | grep ALERT | awk '{print $1}' | wc -l)
lines=$(cat -n http.log | grep ALERT | awk '{print $1}')
1-string gets the number of found lines... (2 Replies)
Discussion started by: neverhood
2 Replies
3. Shell Programming and Scripting
This is the problem actually:
This regex:
egrep "low debug.*\".*\"" $dbDir/alarmNotification.log
is looking for data between the two quotation marks:
".*\"
When I hate data like this:
low debug 2009/3/9 8:30:20.47 ICSNotificationAlarm Prodics01ics0003 IC... (0 Replies)
Discussion started by: ndedhia1
0 Replies
4. Shell Programming and Scripting
I'm trying to search for lines ending with "}" with the following command but am not getting any output.
grep '\}$' myFile.txt
I actually want to negate this (i.e. lines not ending with "}"), but I guess that should be easier once I find the command that finds it? (11 Replies)
Discussion started by: BootComp
11 Replies
5. 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
6. Shell Programming and Scripting
Dear All,
Please advice me, I have a text file with one field date and time like below given. I need to find out the lines whchi content the time stamp between
Wed May 26 11:03:11 2010 and Wed May 26 11:03:52 2010 both can be included, using awk command which could be an interactive so that I... (6 Replies)
Discussion started by: chinmayadalai
6 Replies
7. Shell Programming and Scripting
Hello all,
I've a problem. I've two logfiles and i need to find lines in the second file by using information from the first file. First I need to extract a searchpattern from the first file. Its like abc=searchpattern&cde=. All between abc= and &cde= is the pattern I need to find in the second... (2 Replies)
Discussion started by: Avarion
2 Replies
8. Shell Programming and Scripting
without using conventional file searching commands like find etc, is it possible to locate a file if i just know that the file that i'm searching for contains a particular text like "Hello world" or something? (5 Replies)
Discussion started by: arindamlive
5 Replies
9. Shell Programming and Scripting
Hi fellas,
I have a file like this:
A_B
B_D
C_D
D_B
E_F
G_H
B_A
F_E
In other words, I have member1_member2 and member2_member1 in the same file. In the exemple aforementioned I have A_B and B_A, B_D and D_B, E_F and F_E.
So, I would like to know a sript that print the lines B_A, D_B... (3 Replies)
Discussion started by: valente
3 Replies
10. UNIX for Dummies Questions & Answers
(1 Reply)
Discussion started by: Twinklefingers
1 Replies
LEARN ABOUT DEBIAN
gtimer
GTIMER(1) GTimer GTIMER(1)
NAME
gtimer - an application for recording time spent on user-defined tasks.
SYNOPSIS
gtimer [-midnight offset] [-weekstart day] [-nosplash] [-resume] [-start task]
DESCRIPTION
GTimer allows the user to time one or more activities. Users define tasks that can be timed. Text annotations can also be added to tasks.
Reports can be generated that summarize time spent and annotations.
OPTIONS
-midnight offset
Specify the offset of midnight to use. Users can allow time spent after midnight to be recorded for the previous day. For exam-
ple, the command
gtimer -midnight 400
will not consider everything 3:59AM the previous day.
-weekstart day
Specify which day of the week should be considered the beginning of the week when generating reports. day should be a number
between 0 and 6, where 0 is Sunday. For example, the command
gtimer -weekstart 1
will use Monday as the first day of the week for all weekly reports. The default is 0 (Sunday).
-resume Start timing any tasks that were still be timed when GTimer last exited.
-start taskname
Start timing the specified task immediately. This option can be used more than once on the command line. For example, you can
start a tasks with:
gtimer -start 'GTimer development'
-nosplash
Do not display the splash window on startup.
FILES
~/.gtimer/ data storage
SEE ALSO
enscript(1), lpr(1)
AUTHOR
Craig Knudsen <cknudsen@cknudsen.com> <http://www.cknudsen.com/>
GTimer WWW home page: <http://www.cknudsen.com/gtimer/>
GTimer Mar 19, 2003 GTIMER(1)