@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> heath: can you give a better example?
<1> goldfish: It's ok. I found a better way to do what I needed.
<0> Ok.
<1> But, for discussion sake, what I meant was like:
<1> say we have: /asdf/ {...} /rt/ {...}
<1> Is there something I can do so that anything that isnt taken care of already, it will be taken care of with it.
<1> Like if the line didn't match either of those, then do a certain action.
<0> oh right
<0> yeah



<2> hello
<2> i need a little help please
<3> hi
<2> i have 2 files
<3> ok
<3> good
<2> and i want to use awk to get a line from file 1 and a line from file 2
<2> and echo them to another file
<2> how can i do this ?
<4> "man paste" ;)
<5> glontu: what is the required output in the last file ?
<5> line1 line2
<5> or
<2> no
<5> line1
<5> line2
<2> i am treying to make a firewall script
<2> it will have to look like this
<2> p*** out quick on $int_if from any to 89.35.250.133/32 queue glontu
<2> where the netmasks are in file 1
<2> and queue names in file2
<5> glontu: why not paste ?
<2> i can use paste to paste the netmasks and the names in the same file and then use awk to put in the other text ?
<2> or ... i can do it all with paste ?
<5> why dont you try it
<2> i'll try it now
<2> 1 more question though
<5> first use paste to make the required format.. after that you can use sed or awk or whatever to add the rest
<2> i have a file with names that looks like this :
<2> virgild13_ed, flo_ed, gxg_ed, cristian_ed, k2_ed, simona_ed, pig_ed, liviupm_ed, carmen_ed, florin_ed, claudiu_ed,
<2> what should i use to echo one name per line ?
<4> replace the "," with \n.
<5> glontu: in what form is that now?
<5> or may be arrays
<2> it's just a text file with a really long line containing many names



<2> i would like to make it a name per line in order to use paste
<5> while read line ; do names=(${line//,/ }); for i in "${names[@]}" ; do echo $i; done ; done < file
<2> i get a Missing }.
<5> copy/paste ?
<2> yes
<2> i've pasted it and used my file name
<5> ah yes small mistake
<5> na.. its correct
<5> are you on bash itself ?
<2> i'll try again
<2> yes
<2> strange ... there seems to be no missing "}"
<5> :)
<3> ping
<0> pong
<3> goldfish: get that msg from lilo?
<0> About DCC?
<3> yea
<0> I did.
<3> ok, quiet every chan i'm on, thats why i pinged
<0> :)
<0> well.
<3> can you burn the 2 slackware install iso's to one DVD; one iso boots and installs; the other iso is just apps to install
<0> Probably not, slackware is so old, it doesn't know what a dvd is !
<3> yea, still doing floppy installs so far ;)
<0> :)
<0> I think there is a slackware dvd.
<0> I installed slackware a while back, but it pissed me off.
<3> good to have a emotional stress test from linux sometimes; then you realize how much you like your distro ;)
<0> Fag!
<3> you baiting me?
<0> Yes.
<3> trolling for attention? you must be really bored ;)
<0> :)
<6> Bonjour.
<0> hola
<7> is there a debugger fro gawk?
<7> s/fro/for
<6> goedel: printf() works ;)
<6> IBM bastards don't have Java installed on the mainframe... ::sigh::
<6> Oh, wrong window. Sorry.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #awk
or
Go to some related logs:

compare string with number getdkp
#web
quakenet resolve hostname
#oe
kentaur porn
#gentoo
#web
#gimp
ubuntu qtparted no device found
#gaim



Home  |  disclaimer  |  contact  |  submit quotes