IRC log for #gllug on 20110916

00:38.00*** join/#gllug Leeds (~richardc@n218103199220.netvigator.com)
02:53.20*** join/#gllug Leeds (~richardc@202.130.86.146)
08:09.27morsingLeeds!
08:34.19j0nrmorning
08:34.39j0nrI need a brain to pick about bash scripting
08:38.47j0nrI wish to simply test how many files with a certain name exist.... so far:
08:38.49j0nrif `ls *filename* | wc -l` > 10; then echo 'greater than 10'; fi
08:52.11Leedser, no
08:52.20Leeds> is file redirection, not greater-than testing
08:52.39Leedsyou want to use something more like if [ $(ls *filename* | wc -l) -gt 10 ]
08:55.09Leedsnote that it will fail if no files match at all
08:56.39j0nrLeeds: Aha! Thank you!
09:23.18morsingj0nr!
10:32.49*** join/#gllug Leeds (~richardc@n218103199220.netvigator.com)
10:33.40ChoHagj0nr: If you do files=(*filename*), then ${#files} is how many files match.
10:33.46ChoHagBash arays ftw.
11:05.51j0nrChoHag: Nice!
12:00.53*** join/#gllug dick_turpin (~peter@host217-34-163-30.in-addr.btopenworld.com)
12:01.23dick_turpinlo
12:02.18boudiccashi sexy! :)
12:04.18boudiccasdick_turpin; hi sexy! :)
12:06.11dick_turpinboudiccas: Show us your knickers
12:06.35boudiccasno, ypu've already seen them
12:07.32dick_turpinDamn
12:08.17dick_turpinShow us your high heels (Although I do have a thing about Dragoon boots tbh)
12:09.25boudiccasi haven't got any high heels, nor dragoon boots either
12:10.39dick_turpinHm? Sensible shoes will have to do I suppose. :-(
12:11.19boudiccasi've got sandals
12:11.31boudiccasand dr martins
12:17.55dick_turpinSandals and a bed sheet, perfect
12:18.27boudiccasque?
12:26.56dick_turpinToga
12:27.33boudiccasah right
12:27.44boudiccaslike you saw in Rome?
12:32.17dick_turpinYes, we know how to have a good time. :-)
12:47.00j0nrargh, whats wrong with this:
12:47.57j0nrfor P in $(ls $repositories); do  ttlSvn=$(ls *_$P_* | wc -l) echo $ttlSvn; done
12:48.27j0nrI want to list how many times files with $P in their name appear in a directory
12:56.34boudiccasdick_turpin; i liked the photo of the roman soldier
12:57.06boudiccasdick_turpin; when you were talking to him
12:57.48dick_turpinI bet you did, he did have rather a large weapon. :-)
12:59.20boudiccasyou mean his gladius?
13:00.13dick_turpinSome call it that
13:00.32boudiccasthats its proper latin name
13:02.10boudiccasdick_turpin; did i tell you that i am a F.R.A.I? of long standing too :)
13:02.53boudiccasFellow of the Royal Archaeolgical Institute
13:03.14dick_turpinOoh really?
13:03.23boudiccasyes really
13:03.41boudiccasarchaeology has long been an interest of mine
13:04.04dick_turpinI love historical stuff
13:04.21boudiccasyou ought to go on a dig, they're good fun
13:04.33dick_turpinwaits for the "That's because you're an old fossil"
13:05.00boudiccasno, thats palaeontolgy
13:05.12boudiccaspalaeontology
13:11.09dick_turpinIf I was young and could do it I'd go to Uni and do a phd in Mosaics, I catalogue all the known ones where they are and then try and attribute them to a maker/supplier/builder
13:11.54dick_turpinHow cool would that be? "Oh yes that's by Dominicius he done the ones in Tower Hamlets you know"
13:13.27boudiccasdick_turpin; you could do A-level archaeology and do that for your thesis
13:14.58dick_turpinWell it's a nice idea. I have lots of things I'd 'like' to do but I doubt I'll do any of them.
13:15.48boudiccasmake a list and then try to do one new thing every year before you die. that way you can keep fresh and learning and still have fun
13:16.53dick_turpinI suspect my idea has already been done anyway
13:17.21boudiccasno idea baout the mosaics
13:17.28boudiccasabout
16:26.45*** join/#gllug _ana_ (~anna@194.74.241.4)
17:00.17ChoHaghttp://i.imgur.com/BJXfk.jpg

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.