Search the web
Sign In
New User? Sign Up
geeksthatgawk · for GNU Awk questions & discussions
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 174 - 204 of 221   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
174
Hi, I'm new to the group and just saying hello. I use RH9 on a Dell and discovered Gawk in the info files. I've been using it a little, and it's made me...
Jef
jb2702000
Offline Send Email
Jun 28, 2005
3:04 am
175
Hi, I have a problem with gawk, and I though you guys might help. Here's the situation: I have an active logfile, which receives some lines from time to time. ...
luknowak23
Offline Send Email
Jun 28, 2005
3:05 am
176
I guess I saw the same paper you did at: http://www.cs.wustl.edu/~loui/sigplan I was suprised that his students using Gawk faired better than those using C++....
Jef
jb2702000
Offline Send Email
Jun 28, 2005
3:18 am
177
Touche' Daniel...
Jef
jb2702000
Offline Send Email
Jun 28, 2005
8:59 pm
178
When I did it like this: tail Bookmarks.html | gawk '{ print $0 > "outfile" } It worked fine. The outfile was created and the last ten bookmarks were there....
Jef
jb2702000
Offline Send Email
Jun 28, 2005
9:52 pm
179
The reason is because tail, doesn't send it's output to gawk until it finishes running. When you use -f, tail reads the file, then sits at the end of it...
Jef
jb2702000
Offline Send Email
Jun 28, 2005
11:10 pm
180
Try this: I made a file like this called temp 1 2 3 4 Then in one terminal I ran tail -f temp >> outfile & Then in the same terminal I ran your code without...
Jef
jb2702000
Offline Send Email
Jun 28, 2005
11:43 pm
181
Actually, I made a mistake. If you type > instead of >> in tail -f temp >> outfile & (eg: tail -f temp > outfile &) The output in the first terminal matches ...
Jef
jb2702000
Offline Send Email
Jun 29, 2005
12:12 am
182
The simplest way to answer your question, is that the first statement: tail -f FILENAME | gawk '{ print $0 > "outfile"; print $0; }' the output is only on the...
Jef
jb2702000
Offline Send Email
Jun 29, 2005
1:54 am
183
Hi, AWK users! When using sprintf() to format float numbers with left padding zeroes, it doesn't work. For example, the output desired below should be "00023,...
Rodrigo Hjort
rodrigo_hjort
Offline Send Email
Aug 21, 2005
5:04 pm
184
hello Rodrigo, try $ awk 'BEGIN{ print sprintf("%05d, %06.2f", 23, 4.5) }' 00023, 004.50 the '6' in "%06.2f" is the minimum width of the outputed float. ...
Adam
adam_onza
Offline Send Email
Aug 27, 2005
6:44 pm
185
Thanks, Adam! It solved my problem! Regards, Rodrigo...
Rodrigo Hjort
rodrigo_hjort
Offline Send Email
Aug 29, 2005
3:45 pm
186
After some ages, well almost 10 years, I've just spent an hour writing another short gawk script to convert a waypoints GPX file to a track GPX file. It was...
sabre 2/3 tiger
sabre23t
Offline Send Email
Nov 9, 2005
2:51 pm
187
Use AWK (gawk) all the time... is a mainstay in my utilities spread across Windows, Linux, UNIX, OpenVMS platforms. Best to you, dan ... From:...
Stout, Danny
dasthcc
Offline Send Email
Nov 9, 2005
3:52 pm
188
Me, use it almost everyday though only simple ones... Still trying to absorb all the use of it. YOnas ... From: geeksthatgawk@yahoogroups.com ...
Djamianto, Yonas Yudi...
moleklima
Offline Send Email
Nov 10, 2005
1:16 am
189
Can someone kindly show how to print each line of a file to bash variable from a awk command? Super Thanks!, JB...
jbutler1532
Offline
Dec 8, 2005
8:38 pm
190
Hi All, I need a help from u.I'm getting the home directory from passwd.bak file.I need to find the disk usage of that particular user.I'm getting output if i...
renuka prasad
renukaprasadtg
Offline Send Email
Dec 26, 2005
3:40 pm
191
I'm not sure, but it looks like the apostrophies get in the way. try: awk -f":" '/'$username'/ { print $6 }' passwd.bak >output I hope that works....
Adam
adam_onza
Offline Send Email
Dec 27, 2005
1:09 am
192
Or might try this one: awk -F":" '{if($1 == ZZ){print $6}}' ZZ=${username} passwd.bak >output _____ From: geeksthatgawk@yahoogroups.com ...
Stout, Danny
dasthcc
Offline Send Email
Dec 27, 2005
1:56 pm
193
Sorry about the previous wrong example. For GAWK the format is a little bit different than the AWK format. Here is the GAWK format: gawk -F":" '{if($1 == ZZ)...
Stout, Danny
dasthcc
Offline Send Email
Dec 27, 2005
6:52 pm
195
Any ideas on what this is referring to or how to correct it? It seems to be related to the following: proc run {filename} { set base [file rootname $filename] ...
sdkfz1822002
Offline Send Email
Feb 27, 2006
5:20 pm
196
That particular error message (I assume you mean the one in the subject line) could mean either that gawk could not find gawk itself, or the awk program...
Albert Bickford
albert_bickford
Offline Send Email
Feb 28, 2006
4:14 am
197
Albert, Thank you. You're right. The issue seemed to be that the gnuwin32 wasn't in the environment variables path. I appreciate the quick response, too. ...
Dave Higgins
sdkfz1822002
Offline Send Email
Feb 28, 2006
1:39 pm
198
There is freeware for Windows at http://www.klabaster.com, if anyone is interested....
delgado0m
Offline
Mar 24, 2006
4:28 pm
199
Hi, can someone help me with this? i want the print command to print a double quote mark as part of a string. mawk won't have it. a double quote is a control...
spillikinaerospace
spillikinaer...
Offline Send Email
Jul 5, 2006
3:47 am
200
Might try a Single Quote ( ' ) or a backslash-Single Quote ( \' )... if that works you could use a Double Single Quote to give the illusion of a Double Quote...
Stout, Danny
dasthcc
Offline Send Email
Jul 5, 2006
2:18 pm
201
Try this (use \\\") gawk "BEGIN {print \"\\\"hello\\\"\"}" "hello" I tested it on Windows XP running win32 port gawk 3.1.3 from...
Ambrosio Berdijo
aberdijo
Offline Send Email
Jul 5, 2006
3:18 pm
202
... HASTA LA VISTA ***BABY*** that was my silver bullet! i tried variants on what you wrote and finally stumbled on the solution: i did: mawk "{print $1,...
spillikinaerospace
spillikinaer...
Offline Send Email
Jul 6, 2006
12:16 pm
203
Mike... what would happen if you did a: gawk "{print 'word' }" or gawk "{print \"word\" }" (the idea being for the command line interpreter to know what double...
Stout, Danny
dasthcc
Offline Send Email
Jul 6, 2006
12:38 pm
204
thanx, but no luck yet...
spillikinaerospace
spillikinaer...
Offline Send Email
Jul 6, 2006
7:18 pm
Messages 174 - 204 of 221   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help