Log for #redhat on 2006-04-17


Session Start: Mon Apr 17 00:00:00 2006
Session Ident: #redhat
[02:13] * Hypn0Toad is now known as HypnoToad
[02:21] * vella waves hello
[02:28] <evolve> hm
[03:41] * Oroshi is now known as oroshi
[03:42] * oroshi is now known as Oroshi
[07:07] <magikman> heh
[07:07] <znx> what you gigglin about :P
[07:11] * hacking- is now known as hacking
[12:21] <teekay> how do i install apache with php, using yum or up2date?
[13:22] * P38_ is now known as P38
[13:36] <MdSalih> had a question regarding shell scripting
[13:37] <MdSalih> wanted to find the number of files in a directory
[13:37] <MdSalih> i.e. do a for(int i = 1; i <= count(ls); i++) do..
[13:37] <br1> ls -l | wc -l
[13:37] <br1> ?
[13:37] <br1> rather ls -a
[13:40] <MdSalih> ok thanks
[13:40] <MdSalih> what if i want a new counter inside the for loop
[13:40] <MdSalih> i.e. m = 0
[13:40] <MdSalih> $m++
[13:40] <MdSalih> how comes that doesn't work :-/
[13:42] <MdSalih> i.e. http://pastebin.com/665813
[13:43] <OmegaEvil> ehh lol
[13:44] <OmegaEvil> because that isnt the right bash syntax
[13:46] <MdSalih> what am i doing wrong :/
[13:48] <MdSalih> sould i do m += 1 ?
[13:48] <OmegaEvil> m=$((m + 1))
[13:49] <OmegaEvil> no
[13:49] <MdSalih> ok
[13:49] <OmegaEvil> you are applying wrong syntax
[13:49] <OmegaEvil> read the man page
[13:49] <OmegaEvil> bash is != php
[13:53] <MdSalih> do i need to do expr $m + 1 ?
[13:53] <MdSalih> :=/
[13:54] <OmegaEvil> i told you what to do
[13:55] * br1 is now known as CielingCa
[13:55] * CielingCa is now known as br1
[13:55] <MdSalih> it doesn't like the initial m = 1
[13:55] <MdSalih> on line 1
[13:56] <OmegaEvil> m=1
[13:58] <MdSalih> m = $((m + 1)) <-- says can not find command m
[14:00] <OmegaEvil> dude
[14:00] <OmegaEvil> m=$((m + 1)) does that look like m = $((m + 1)) to you ?
[14:01] <MdSalih> oh ok thanks
[14:45] <znx> let "m = m + 1" or m=`expr $m + 1`
[14:45] <znx> or m=`printf "%s\n" $m + 1 | bc`
[14:45] <znx> heheh
[14:45] <evolve> ;o
[14:46] <znx> l33t mathhor skillz ;)
[14:49] <znx> hey OmegaEvil :P
[14:52] <OmegaEvil> oi oi
[14:52] <OmegaEvil> just got out of the shower
[14:52] <OmegaEvil> ;-}
[14:53] <OmegaEvil> he needs to learn bash syntax first!
[14:53] <znx> :)
[14:53] <OmegaEvil> hey karryn
[14:53] <OmegaEvil> ;-D
[14:54] <OmegaEvil> hence the built-in integer arithmetic ...
[14:54] <OmegaEvil> hmmm
[14:55] <OmegaEvil> turn-around time 3 days
[14:55] <OmegaEvil> for a fricking cable ?!?!
[14:55] <OmegaEvil> lol
[14:55] <znx> hehe
[14:56] <OmegaEvil> looks like all the ipv6 guys have been whining all weekend since they had
[14:56] <OmegaEvil> thats what bank holidays do for ya
[14:56] <OmegaEvil> brings out the whiners
[14:57] <OmegaEvil> brb need a glass
[15:02] <OmegaEvil> mm breakfast
[15:02] <OmegaEvil> lol
[15:02] <OmegaEvil> at 11pm
[15:05] <znx> hrhrh
[15:05] <znx> nice :P
[17:08] <br1> how is there no #GNOME?
[17:09] <kitchen> *shrugs*
[17:09] <kitchen> this isn't freenode.
[17:09] <br1> just seems like a likely channel on EF
[17:10] <kitchen> *shrugs*
[17:12] <OmegaEvil> hehe
[17:20] <HypnoToad> ppl still use gnome? *ghasp*
[17:52] <HeatWave1> does anybody smell somethin in here?
[17:52] <Images> yeah
[17:53] <HeatWave1> i smell somethin and i think it smells like shit...
[17:53] <HeatWave1> probably tat nasty HeatWave1
[17:53] <HeatWave1> probably tat nasty HeatWave2
[17:53] <HeatWave1> she smells like an aids infested cum bucket
[17:53] <HeatWave1> think she had 1 to many bukakkes in her day
[17:54] <magikman> do we really need two of you in here?
[17:54] <HeatWave1> magikman go sux youself
[17:54] <HeatWave1> tis dunt concern yous
[18:11] <OmegaEvil> magikman, i think that was heatwave1's objective to get heatwave2 banned
[18:11] <OmegaEvil> hehe
[18:11] <OmegaEvil> actually nevermind
[18:12] <OmegaEvil> it/he/she only said soemthig once and it wasnt even something smart
[18:12] <OmegaEvil> hehe
[18:12] <OmegaEvil> ;-D
[18:23] <MdSalih> how do you do modulus in shell scripting
[18:23] <MdSalih> i.e. 4%3 = 1
[18:24] <MdSalih> modulo*
[18:25] <MdSalih> got it
[18:34] <MdSalih> how can i do a ls of a directory with files with spaces... and get it to re
[18:34] <MdSalih> i.e. if i have the file "This is a song.mp3"... ls in bash script returns f
[20:19] * Disconnected
[20:19] * Attempting to rejoin channel #redhat
[20:19] * Rejoined channel #redhat
[20:19] * Topic is 'Welcome to #redhat | Just ask a question and somebody will answer when they can
[20:19] * Set by OmegaEvil!Titan@why.dont.you.just.dnb.me.uk on Thu Mar 30 12:00:27
[20:26] * Alan- is now known as udpee
Session Close: Tue Apr 18 00:00:00 2006