| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11
Comments:
<0> great <0> english is my third language, so don't report my bugs :D <1> yeah, many of the freenode constituents are american, and most americans are asleep right now ... so the network tends to be somewhat quiet for a few hours during "our" night <0> :) <0> i see, <1> w***im: alright, if that's what you prefer, although I'm always happy to ***ist people in learning english. French, and a regional dialect of some sort? I have no idea if there is a Tunisian language <0> in tunisia, we speak arabic, one of the most difficult languages in the world <2> at least you speak english better than most native speakers ;) <2> including me :D <0> no, <0> Vasistha is from los angelos, and you Pat` <0> what time is it in los angelos <0> Pat`: from australia? <2> yeah <0> great <2> mmmm
<0> what's that "mmmm", i got nothing in mind :) <2> nothing <2> just thinking out loud <0> yeh, that's it, maybe <0> no msn? <0> Vasistha: no msn? <1> w***im: oh, sorry, wasn't tracking, thanks for the highlight. I don't really im much at all. <0> Vasistha: i dont understand what u said <1> w***im: I was not paying attention. You said my nick, "Vasistha", which attracts my attention, so I thanked you for the "highlight". I don't really use Instant Messaging services. <2> as you shouldnt <0> why? <2> because thats what irc is for :) <2> someone from uq :o <0> not every body have irc <0> i got some friends, using msn, so i do <2> there are that many irc clients of that many platforms <0> i know <2> than again i do use jabber <2> if someone dosnt use jabber and dosnt want to they dont want to talk to me. <0> :D <0> what are u doing in ur life (job, student) <2> student <0> me too <0> hey Vasistha , sleeping <1> actually, checking my email on this one address for the first time in a month... <0> Pat`: what's ur real name <0> Vasistha: i c u've a lot of mails !! checking once a month ??? <1> w***im: you know, you should /join #freenode-social <1> w***im: ... #bash is really not designed to be a "social" channel ;-) <1> w***im: it takes a little time to get voice, but it's worth the wait <1> w***im: ...most people who are willing to share their realname will make it accessible via /whois <2> w***im: whois <0> join me on #freenode-social, i'll tell u :) <1> uh, why did you leave fns?? <2> freenode-social isnt a place i want to be <0> Vasistha: bug <1> w***im: you may have to wait quite a while to get voice again :P <0> how to register Vasistha <2> w***im: /msg NickServ help register <1> I think /msg nickserv register yourp***word <0> no, that doesn't work <2> you need to read the message the ole fella sends back <0> ok, that's ok <0> Pat`: whois <2> w***im: run /whois Pat` <2> will tell you info about me <0> I got no information about your age, your study ! <2> 15, school. <0> only 15? <2> yes <0> i'm 22 university, 4 th year <2> nice, what are you studying ? <0> u are on bash salon, are u bash programmer <2> i do it for fun. <0> great <0> what have done as projects, or big exercices,? <2> package manager <3> hi - wondering if an awk guru could hep with this. I have a list of emails processed by my mail server, produced by this: <3> cat /var/log/exim/mainlog* | grep virtual | awk {' print $1'} <0> in tunisia, when 15 we can't switch on a computer :D <3> I am hoping to use awk to count the number of different dates shown, providing me with output like this:
<3> 2006-07-20: 10 mesages <3> 2006-07-21: 21 messages <3> etc <2> basic612: could you please provide us an example output from the above command <3> Pat`: it's jsut a list of dates <3> 2006-07-20 <3> 2006-07-21 <3> etc <2> wc -l <3> one per line for each message that has p***ed through the server <2> will count the lines <3> yeah - but I am hoping to summarise <2> put that through a loop <3> the dates will chage <2> iam sure you could have yourself a nice script <3> I was hoping for a one liner ;) <2> no can do ;) <3> but I can do some looping <3> well I found a pre-written awk script to do what I need <3> gotta love google :) <4> clear <1> basic612: I'd do a grep for a date regex and pipe that to wc <1> basic612: or even use grep's ... -v is it? grep has an option to count the lines instead of outputting them. That'd be super-efficient <3> http://sunsite.ualberta.ca/Documentation/Gnu/gawk-3.1.0/html_chapter/gawk_15.html#SEC220 <5> greets all <6> Hi. Does anybody of you guys know how to search for files, but exclude a bunch from folders from the search? <5> can i safely use 'tty' to try and determine if a script is being run from a terminal, as apososed to from cron for example. i want it to print things when run by logging into a terminal, but not print if run from cron for example.. <1> give: hrm. sounds like something find could do, if you know how to issue the right command <5> find has a '!' to negate an expression.. <7> fbtab: you can check for an option -q <5> ml2: ok, what would i be testing against.. <7> $1 $2 $3 <7> ... <7> shift <5> the script doesnt take arguments though, am i missing something.. <7> you could make the script taking arguments <5> ok.. <1> are cron jobs always p***ed a -q parameter to be quiet? <7> why not? <5> Vasistha: i wouldnt ***ume so <7> it would be a reliable solution to the 'do not print'-problem <6> fbtan: how do i Use ! <6> sorry <6> fbtab: how do i use '!' in find? find -path !excluded -iname test does not work <1> find . ! -name dir-to-exclude <1> ...I'm not 100% sure of that <5> man find has some nice examples <6> fbtab: the only example that talks about excluding folders uses -prune, which I dont understand <5> find . -maxdepth 1 \! -name '*allso*' -and \! -name '*vmm*' , is an example on my box that excludes files i have on my filesystem, change them and try it on your side <8> find . -name CVS -a -prune -o -print <6> looks like this is short and works: find ../folder/ ! -path 'to_be_excluded' -iname somefile <6> thank you for the help! <5> yes sorry my example is incorrect, use give's <6> 'use give's' ? <6> ah! mine =) <1> give: yeah, -path instead of -name <6> Now something real tricky: How do I exclude all folders that are mounted via "mount --bind ..." into my folders. Thats real hard... <1> give: try -xdev ? <1> I'm not sure if it works for bind mounts <6> no. i tried. <1> strange, it seems to work for me <6> ill try again <1> find shows the folder that is bound, but does not show contents within <6> you mounted via 'mount --bind /some/folder /someother/folder' ? <1> yeah, that's right ... here... <1> find -path './w*' -maxdepth 2 -xdev <1> output of mount: /Docs/www on /var/www type ext2 (rw,bind) <6> whats the maxdepth for? <1> so /var/www points to /Docs/www ... if I cd /var and issue that find command above, it outputs ./www but none of the contents <1> -maxdepth 2 is so I don't get 30 screens of output ;-) <6> ok <1> you'll probably want to remove it ... <1> anyway, if I issue it without the -xdev, it lists contents <6> strange
Return to
#bash or Go to some related
logs:
#math #debian #linux #perl vmware libhal.c 644 : Error connecting to system bus #perl kismet suse madwifi-ng ralink 2500 knoppix boot problem gentoo virtual/libiconv cannot resolve #linux
|
|