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...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 122 - 160 of 221   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
122
Greetings, I have about 1.5 million records that need to be updated, based on the value in the 1st field (pipe delimited). Loading the records into a database...
d_godfrey2000
Online Now Send Email
Oct 12, 2004
8:47 pm
123
Hi gawk gurus, I have an input file that is only one great line, with no field separator. The fields have fixed width. (files from mainframe). for example, an...
ronzanibr
Offline Send Email
Oct 13, 2004
4:19 pm
124
... A combination of sed and awk can make this work fairly easily (I'm working on a bash shell, so you may need to tweak this if you use Windows: $ sed...
Don Godfrey
d_godfrey2000
Online Now Send Email
Oct 13, 2004
4:54 pm
125
I noticed the set of sed & awk commands got broken into 1 too many lines. All of this belongs on one line: sed 's/\(.\{14\}\)/\1|/g;s/|/|\n/g' source_file|sed ...
Don Godfrey
d_godfrey2000
Online Now Send Email
Oct 13, 2004
5:07 pm
126
Thanks Don thats a solution! But think about large files (around 3 GB). Thats would be resource intensive, and I would spent disk space, since the original...
ronzanibr
Offline Send Email
Oct 13, 2004
5:37 pm
127
Ronzanibr, Both awk and sed have you direct your changes to a new file (though you can perform some tricks to overwrite the source file), so the disk space may...
Don Godfrey
d_godfrey2000
Online Now Send Email
Oct 13, 2004
7:05 pm
128
Hi, I am assuming here that you have the values of the 18,500 records in a text file with this format: 7217878112 |100271|600 -|LRG| so $1 is the key and $2...
Ambrosio Berdijo
aberdijo
Offline Send Email
Oct 14, 2004
12:57 pm
129
I do have the 18500 records in a file, but I don't understand what exact syntax I need to use. Here is what I've got, but it isn't working: array values are in...
Don Godfrey
d_godfrey2000
Online Now Send Email
Oct 14, 2004
2:20 pm
130
put the following script in test.awk BEGIN { keyfile = ARGV[1]; delete ARGV[1]; # print "loading key file " keyfile; while (getline < keyfile) { keyvalue =...
Ambrosio Berdijo
aberdijo
Offline Send Email
Oct 15, 2004
5:29 pm
132
Ambo, Thank you, that works! I did change the last part to 'print $0 upd_key[$1]' since I wanted all of the fields from the sls_test3 file, plus the values...
Don Godfrey
d_godfrey2000
Online Now Send Email
Oct 16, 2004
12:55 pm
134
Hi Don, Sorry for the delay, been very busy lately. OK, to understand this just look at the data we are loading into the upd_key, the "upd_key" file contains ...
Ambrosio Berdijo
aberdijo
Offline Send Email
Oct 23, 2004
10:56 am
136
... For my data, I can't count on there being a space anywhere - the data in 'upd_key' file is 4 fields, pipe delimited. Also, the 'keyvalue' isn't necessarily...
Don Godfrey
d_godfrey2000
Online Now Send Email
Oct 24, 2004
10:28 pm
137
Hi guys, my situacion is this im trying to do a bash script and when i try this $ grep adyac 2510.log|gawk '{FS=","};{print $1,$2,$3}' to this data ...
jy_suarez
Offline Send Email
Oct 27, 2004
8:47 pm
138
... I think you've left out 'BEGIN'. And if you want the delimiter to be a part of the output, try: gawk 'BEGIN {FS=",";OFS=",";} {print $1,$2,$3}'...
Don Godfrey
d_godfrey2000
Online Now Send Email
Oct 27, 2004
9:29 pm
140
Thanks men it works exactly like i want it ... the ... be a part...
jy_suarez
Offline Send Email
Oct 28, 2004
1:23 pm
143
Question: Who is the moderator of this list and has control over it? Is there anything that can be done to prevent SPAM postings such as the ones we've been...
Albert Bickford
albert_bickford
Offline Send Email
Nov 1, 2004
5:12 pm
145
I'd also like to find a way to stop the spam that is being sent through this group. From checking the members list, it appears no one is listed as the ...
d_godfrey2000
Online Now Send Email
Nov 3, 2004
1:09 pm
146
I'd also like to find a way to stop the spam that is being sent through this group. From checking the members list, it appears no one is listed as the ...
d_godfrey2000
Online Now Send Email
Nov 3, 2004
1:32 pm
147
Don: The main duties of a moderator are to control the list. Mostly, this is just a matter of setting restrictions on the list (who can join, who can post,...
Albert Bickford
albert_bickford
Offline Send Email
Nov 3, 2004
8:29 pm
148
It is a good idea to block the spammer, but we need to think it through before we deny anyone the right to join (potentially a legal issue?). In my opinion, ...
Jagdish Shah
shahjb40
Offline Send Email
Nov 5, 2004
6:51 pm
149
Good points. Presumably, yahoo allows the list owner to restrict members from browsing the list of people subscribed. Those are both things to look into once...
Albert Bickford
albert_bickford
Offline Send Email
Nov 6, 2004
8:47 pm
150
hello, I'm new to this group. I've read about using Awk for AI, but there are no sites with source code. has anyone seen or written such a thing?...
Adam
adam_onza
Offline Send Email
Nov 7, 2004
6:00 am
151
I have not heard of this use of AWK, and frankly, would be surprised at it. AWK was designed to do systematic transformations of text files and is very weak on...
Albert Bickford
albert_bickford
Offline Send Email
Nov 8, 2004
10:41 pm
152
here's a link to an article on AWK AI: http://www.cs.wustl.edu/~loui/sigplan it's where I read about AI in AWK. they talk about using AWK as an AI teaching...
Adam
adam_onza
Offline Send Email
Nov 12, 2004
8:58 pm
154
But one thing you can't do with awk is something like this: BEGIN { variablefunction = "myfunc" variablefunction(2) exit } function myfunc(a) { return a+2 } Or...
Daniel Ajoy
daniel_ajoy
Offline Send Email
Nov 12, 2004
9:42 pm
155
Logo-esque AWK! I thought your pseudocode-style looked familiar! :D Logo is great! thanks for the link. once, I wrote a functional interpreter in Logo, nothing...
Adam
adam_onza
Offline Send Email
Nov 12, 2004
11:20 pm
156
... This should have been: BEGIN { variable = "a" functiondef = "myfunc(" variable ") {return " variable "+2 }" define(functiondef) myfunc(2) exit } Anyway,...
Daniel Ajoy
daniel_ajoy
Offline Send Email
Nov 12, 2004
11:50 pm
157
why not have a look at my neuron in awk? curse the perfectionist in me! I am not happy with the code. it trains the simulated neuron to be an "or" gate, but it...
Adam
adam_onza
Offline Send Email
Nov 13, 2004
2:24 am
158
... This could be: function or(x,y) { return x == 1 || y == 1 } Daniel...
Daniel Ajoy
daniel_ajoy
Offline Send Email
Nov 13, 2004
7:21 pm
160
... there ... we've ... I, for ... incrreases, and I ... I am the owner of this group and only moderator. My apologies for the delayed deletion, banning, and...
nitallica@...
nitallica
Offline Send Email
Nov 19, 2004
11:28 pm
Messages 122 - 160 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