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...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 191 - 221 of 221   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
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
205
... 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...
spillikinaerospace
spillikinaer...
Offline Send Email
Jul 7, 2006
4:21 am
206
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...
ylng
naghems
Offline Send Email
Jul 8, 2006
4:15 pm
207
Kindly help me anybody!!!! how to create an index file? pleeeeeeeeeeeeeeeeeese Ambrosio Berdijo <aberdijo@...> wrote:...
ylng
naghems
Offline Send Email
Aug 6, 2006
12:37 pm
208
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...
sdkfz1822002
Offline Send Email
Aug 9, 2006
7:52 pm
209
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. ...
schpanich
Offline
Sep 7, 2006
11:52 am
210
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...
Stout, Danny
dasthcc
Offline Send Email
Sep 7, 2006
1:22 pm
211
... 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 ...
Daniel Ajoy
daniel_ajoy
Offline Send Email
Sep 7, 2006
1:33 pm
212
... { while (1) { new = gensub(/(.*[0-9])([0-9]{3})/,"\\1,\\2",1) if ($0 == new) break $0 = new } print } echo hello 12123456 wewr | gawk --re-interval -f...
Daniel Ajoy
daniel_ajoy
Offline Send Email
Sep 7, 2006
9:18 pm
213
I don't understand what you mean. Ask the group. Daniel...
Daniel Ajoy
daniel_ajoy
Offline Send Email
Sep 8, 2006
1:44 pm
214
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 ...
Femi George [ MTN - G...
gnuts4lunch
Offline Send Email
Sep 22, 2006
12:41 am
215
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...
Albert Bickford
albert_bickford
Offline Send Email
Sep 22, 2006
1:37 am
216
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: ...
Ambrosio Berdijo
aberdijo
Offline Send Email
Sep 22, 2006
2:00 am
217
How does awk handle open files? Suppose I am running a cron job to find files that are downloaded to a directory via sftp. Every 10 minutes, I want to...
goodmis
Online Now Send Email
Feb 5, 2007
11:15 pm
218
Hi All, I'm trying to read a file which looks as below ( There are thousands of these records in the file )- <BEGINREC> ID -!- 359494 -!- ST -!- Outstanding ...
kaushik BR
kaushik_908
Offline Send Email
Mar 20, 2007
12:40 pm
219
Hi All, I'm trying to read a file which looks as below ( There are thousands of these records in the file )- <BEGINREC> ID -!- 359494 -!- ST -!- Outstanding ...
kaushik_908
Offline Send Email
Mar 20, 2007
12:41 pm
220
Hi Kaushik, Try removing the "$" in ALL the array references, for example: my_Array[$arr_Index] becomes my_Array[arr_Index] Ambo The bit of code...
Ambrosio Berdijo
aberdijo
Offline Send Email
Mar 22, 2007
3:47 am
221
I'm at a total loss with this one... Here's the script I want to use to inform our customers about a 5¢ (see the problem?) price increase. It's important...
huhjijijiji
Offline Send Email
Apr 13, 2007
12:02 am
Messages 191 - 221 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