| |
| |
| |
|
Comments:
<0> i've got a bunch of HTML files i need to make a change to <0> and i was wondering if anyone could give me an example of wildcard search and replace <1> Sounds more like a job for sed(1). <2> lopa: Can you show us an example? <0> cant I do that with awk? <3> yes. <3> replace the sed in the example you got from #bash , with awk <3> gsub() , sub() , whatever <0> ok, thanks you! <2> :: yawn :: <2> Nap time! <2> See you guys later. <3> Au revoir. <4> nite pr3d4t0r <5> pr3d4t0r, on ? <6> anyone up?
<6> i want to print the lines of a file between after "+string <6> after "+string+" and before "-string-", where string is can be anything <6> the + and - don't matter either, i just need some way of representing the start/end blocks of what i want printed <6> i imagine this is easy <7> stu`_: fixed? <7> awk '{ gsub(/.*-str-|\+str\+.*/, "") ; print }' <6> xmb: thanks <6> doesn't seem to work but thanks anyhow <8> awk '{ gsub(/.*\+doo\+|-doo-.*/, "") ; print}' <8> sed is nicer for stuff like that <6> sed -ne /string1/,/string2/ < file <6> but it prints the lines with string1 and string2 <6> is there an elegant way to strip the first/last line? <8> wait. <8> +string+ and -string- are not on the same line? <6> http://rafb.net/p/n8R93J51.html <8> ok <6> wow i just re-read my original question, sooo poorly worded, i'm sorry <6> <-- tired <6> goldfish: you can easily see what i want to do now, given the paste <6> goldfish: ultimately the objective is to write a function in vim, so i can just insert templates., i figured the easiest thing to do was use sed/awk instead of doing a bunch of vim scripting (which i know none of..) <6> call Insert(join) <6> etc <8> sed -n '/+sort+/,/-sort-/{/[-+]sort[-+]/!p}' <6> w00t <6> muchas gracias! <6> goldfish: how do i p*** the 'sort' parameter through vim's functions? <6> http://rafb.net/p/n7c2zk68.html <6> just so you know what i mean <8> no idea. <8> #vim <8> invoking sed through vim is odd, though, you can no doubt do it all in vim <6> yeah but its a lot easier to invoke sed <8> :-) <7> nothing up eh <2> :: yawn :: <2> Hello. <7> :: hi :: <8> :: asl :: <9> `' <2> Zap-W! <9> hi <2> Zap-W: What's cookin' in Israel? <9> a bomb, somewhere in the west bank <9> heh <9> i took RHCE test and p***ed , now i am gonna start looking for a sys admin job in the US <9> do you think there are jobs oportunities ? <7> sure are <7> but rh ****s <7> you better do debin certs <7> debian <7> i think there are some <9> debian certs?! <9> are you sure? <7> no <7> theres some exam in LPI cert <2> Zap-W: :( <9> i thought there was a license problem with debian that prevents them from running a cert test <9> LPI is considered less valuable <2> Zap-W: Do you have a work permit for the US?
<9> most linux servers run RH enterprise anyway no? <2> Zap-W: Visas for non-developers are harder to come by. <9> no , but the job should get me one no? <2> Zap-W: No. <2> Zap-W: The H1B visas (work visa) are very scarce. <9> are you sure? <2> Zap-W: Yes. I hire lots of people every year. <2> Zap-W: Your options would be to try for a J or an L visa insstead. <2> Er, instead. <9> i never been outside israel besides Brazil , that's my homeland , ..so i don't know much about these visas... <2> Zap-W: Those are educational/exchange visas. They are easier to get. Once you're here you can engage a smart immigration attorney and change your status. <2> Zap-W: Just go to the US immigration web site. All the infos are there. <9> A maximum of 65,000 H-1B visas are issued every year. , that's not much <7> come to cheesy switzerland <7> but no jobs <9> my causin is living in sweden , i wanna goto just for the chicks <9> s/goto/go there/ <9> pr3d4t0r, can one work with educational/exchange visa? <7> too much cobol <9> xmb, what font do you use for virtual terminals in X <7> normal <7> i cant change it <7> i think its the same as putty uses <9> putty in windows? <7> ye <7> courier if i rr <9> i think you can configure the font in putty <7> yea <9> rr? remember ? <7> yea <7> =) <9> courier font hm <9> yes it looks good <7> i cant change **** on linux <9> why <7> no options <7> eterm may be able to change <9> what is the font that xterm uses by default <2> Zap-W: Almost any country that you want to go work as a computer professional will want either a university degree or proof of proficiency. <2> Zap-W: Certs aren't proof of proficiency. <2> Zap-W: If, however, you are well-known as the person behind some open-source thing (i.e. you invented Apache server) you'll get a work visa relatively easy. <2> Zap-W: The only hurdle is the immigration quotas. <2> Zap-W: And yeah, those 65,000 visas get exhausted within minutes of being released because of all the back dated applications. <9> so what can i do <9> i would need to change my stats after i arrive? <9> if i manage to get a tourist visa or similar <7> nighty <8> hi. <9> night <8> God damn visas. <9> goldfish, you live in the us? <8> Fortunately no. <8> I live in Ireland. <8> I doubt I'd ever get into the U.S :-) <9> why? <8> Well, not a visa anyway. <8> I have neither "a university degree or proof of proficiency" <2> Zap-W: Changing status from a tourist visa to another is the hardest. <9> `' <8> ffs. <8> They're talking about the Superbowl on our sports channel. <9> lol <9> :( <9> ok so i will move to sweden <9> screw US <8> Sweden has nice chicks... <9> i hate those hamburgers junk foods anyway <9> yes, ...what more can a guy ask for <9> that's the real purpose of life <2> Zap-W: I haven't been to a junk food place in years. <2> Zap-W: Contrary to what you hear, a lot of us USians don't go to them. <8> :-)
Return to
#awk or Go to some related
logs:
yakuake kerry f12 #ubuntu tofixed is not a function definition of _EVP_BytesToKey php #web History command sqlplus linux protocol not supported smb gentoo #kde #linux #web
|
|