Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

geeksthatgawk · for GNU Awk questions & discussions

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 186 - 216 of 222   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
186 sabre 2/3 tiger
sabre23t Send Email
Nov 9, 2005
2:51 pm
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...
187 Stout, Danny
dasthcc Send Email
Nov 9, 2005
3:52 pm
Use AWK (gawk) all the time... is a mainstay in my utilities spread across Windows, Linux, UNIX, OpenVMS platforms. Best to you, dan ... From:...
188 Djamianto, Yonas Yudi...
moleklima Send Email
Nov 10, 2005
1:16 am
Me, use it almost everyday though only simple ones... Still trying to absorb all the use of it. YOnas ... From: geeksthatgawk@yahoogroups.com ...
189 jbutler1532 Dec 8, 2005
8:38 pm
Can someone kindly show how to print each line of a file to bash variable from a awk command? Super Thanks!, JB...
190 renuka prasad
renukaprasadtg Send Email
Dec 26, 2005
3:40 pm
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...
191 Adam
adam_onza Send Email
Dec 27, 2005
1:09 am
I'm not sure, but it looks like the apostrophies get in the way. try: awk -f":" '/'$username&#39;/ { print $6 }' passwd.bak >output I hope that works....
192 Stout, Danny
dasthcc Send Email
Dec 27, 2005
1:56 pm
Or might try this one: awk -F":" '{if($1 == ZZ){print $6}}' ZZ=${username} passwd.bak >output _____ From: geeksthatgawk@yahoogroups.com ...
193 Stout, Danny
dasthcc Send Email
Dec 27, 2005
6:52 pm
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)...
195 sdkfz1822002 Send Email Feb 27, 2006
5:20 pm
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] ...
196 Albert Bickford
albert_bickford Send Email
Feb 28, 2006
4:14 am
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...
197 Dave Higgins
sdkfz1822002 Send Email
Feb 28, 2006
1:39 pm
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. ...
198 delgado0m Mar 24, 2006
4:28 pm
There is freeware for Windows at http://www.klabaster.com, if anyone is interested....
199 spillikinaerospace
spillikinaer... Send Email
Jul 5, 2006
3:47 am
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...
200 Stout, Danny
dasthcc Send Email
Jul 5, 2006
2:18 pm
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...
201 Ambrosio Berdijo
aberdijo Send Email
Jul 5, 2006
3:18 pm
Try this (use \\&#92;") gawk "BEGIN {print \"&#92;\&#92;"hello\\\"\"}" "hello" I tested it on Windows XP running win32 port gawk 3.1.3 from...
202 spillikinaerospace
spillikinaer... Send Email
Jul 6, 2006
12:16 pm
... 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,...
203 Stout, Danny
dasthcc Send Email
Jul 6, 2006
12:38 pm
Mike... what would happen if you did a: gawk "{print 'word' }" or gawk "{print \"word&#92;" }" (the idea being for the command line interpreter to know what double...
204 spillikinaerospace
spillikinaer... Send Email
Jul 6, 2006
7:18 pm
thanx, but no luck yet...
205 spillikinaerospace
spillikinaer... Send Email
Jul 7, 2006
4:21 am
... BINGO!!! that did the trick. i suppose with mawk there's just alot of guesswork involved. oh well, i got done what i wanted to get done. thanks Danny...
206 ylng
naghems Send Email
Jul 8, 2006
4:15 pm
Hi frenz How to create index file in gawk? am unable to do this...... If I use sorting and grepping it is taking lot of time. Please anybody help me. and do...
207 ylng
naghems Send Email
Aug 6, 2006
12:37 pm
Kindly help me anybody!!!! how to create an index file? pleeeeeeeeeeeeeeeeeese Ambrosio Berdijo <aberdijo@...> wrote:...
208 sdkfz1822002 Send Email Aug 9, 2006
7:52 pm
I'm trying to run a .tcl using wish which keeps giving me trouble. This exception is apparently looking for a paticular class (GenerateSQL in this case), but...
209 schpanich Sep 7, 2006
11:52 am
Hello friends, My name is Srinivas Chakrpani, I have so many doubts in awk scripting. The scripting tools like perl,php,python can call from a web browser. ...
210 Stout, Danny
dasthcc Send Email
Sep 7, 2006
1:22 pm
Srinivas, Here is an awk script I wrote some time ago for adding commas (every 3 digits) into a number. Command line format would be something like: echo...
211 Daniel Ajoy
daniel_ajoy Send Email
Sep 7, 2006
1:33 pm
... the awk file has to be executable in httpd.conf : <IfModule mod_mime.c> ... AddHandler cgi-script awk ... </IfModule> The file index.awk starts with ...
212 Daniel Ajoy
daniel_ajoy Send Email
Sep 7, 2006
9:18 pm
... { while (1) { new = gensub(/(.*[0-9])([0-9]{3})/,"\\1,\&#92;2",1) if ($0 == new) break $0 = new } print } echo hello 12123456 wewr | gawk --re-interval -f...
213 Daniel Ajoy
daniel_ajoy Send Email
Sep 8, 2006
1:44 pm
I don't understand what you mean. Ask the group. Daniel...
214 Femi George [ MTN - G...
gnuts4lunch Send Email
Sep 22, 2006
12:41 am
i have the following file; 12345,89 78777,89 56789,40 18978,40 98864,40 21378,41 i want to create a different file like this; ACCTS WITH CODE 89 12345 78777 ...
215 Albert Bickford
albert_bickford Send Email
Sep 22, 2006
1:37 am
Read the file with Gawk a line at a time. Set comma as the field separator. On each line, look at the second field. If it is an account number that you haven't...
216 Ambrosio Berdijo
aberdijo Send Email
Sep 22, 2006
2:00 am
The algorithm below works best if the file is already pre-sorted based on the Account Code, so using gawk win32 and gsort win32... assume test.txt contains: ...
Messages 186 - 216 of 222   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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