| |
| |
| |
|
Comments:
<0> Sorry, now it works with every encoding. :) <1> LOLERBLADES!!!!!! http://cagle.msnbc.com/news/JonBenetKiller/images/jones.gif <2> hi gang. A quick question I couldn't find in the FAQ: how could I limit my matches only to the first one? <2> ie the first record that matches <1> jjava: <1> Buenos das. <1> Meh.
<1> He left. <3> ohayo gozaimasu, pr3d4t0r-san! <3> s/ohayo/ohayou/ <3> crap <3> gonna be two years since I last did jap <1> iSteve: Ohio. <3> arkansas <4> pr3d4t0r, doumo arigatou! <1> flip|afk: Dojo. <1> iSteve: Arkansas++ <1> iSteve: http://eugeneciurana.com/galereya/view_album.php?set_albumName=album12 <5> how can i tell awk to print a ' character? <5> here is my command line <5> awk '{ print "INSERT INTO CrossReference VALUES (",$1,",",$2,")" <5> }' oem-sn.txt <5> but if i put in a ' into the print it thinks my command has ended. <6> Put your script in file, awk -f file. <1> drs: printf("%c", 65); <-- prints an "A". <5> ok thanks. i'll try :) <6> pr3d4t0r, very screwy way. ;) <5> pr3d4t0r yeah i know you can do that. i know C :) <5> weird, when it's in the script, it only reads the last line of my file <1> Rado: "Screwy" is in the eye of the beholder.
<1> Rado: It's as valid a way as any other until drs tells us of additional constraints. <5> INSERT INTO CrossReference VALUES (' OE-ZT81DR ',' 98099 ') any way i can get rid of the spaces at the prefix and suffix where $1 and $2 is substituted? <1> drs: Use printf() instead of print. <1> drs: And format that to your heart's content. <5> pr3d4t0r: ok <7> q="\047";print q, to print a quote <7> single quote <5> got it :) <5> thank you guys <5> do you guys know a channel on freenode that is specific to unix programming? Kinda like #c but, unix specific c,c++ ? <1> drs: ... <1> drs: What are you trying to accomplish? <5> pr3d4t0r, i'm trying to port Windows code to Unix <5> but in Windows there is a function to "impersonate" a user. <1> drs: Ah. <1> drs: setuid()? <5> pr3d4t0r, ah that's it <1> drs: If you hang out in #c you'll probably find a lot of feedback. <1> drs: Better yet, use Google and some books instead. <1> drs: The quality of the advise you'll get on IRC will vary. Also, on OS-related topics, you'll find a lot more chip-on-shoulder reactions to your questions. <5> i'll just hang out in #c <1> drs: Go get a book. Do yourself a favour. I'll give you a title. <1> drs: Or at least Google. <5> yep, i know. <5> i'm used to being insulted in #c :) <1> drs: You know, the man pages are probably the best resource you'll find. If nothing else, they've been around for almost 30 years and they document the C system API better than anything else. <5> you're right. I usually refer to the OpenBSD man pages for that reason.
Return to
#awk or Go to some related
logs:
Command failed: Block device required pstree junk characters #web #openzaurus #gentoo #bash iftab gentoo frendcorp
#perl quebecgamez
|
|