00:38.00 | *** join/#gllug Leeds (~richardc@n218103199220.netvigator.com) |
02:53.20 | *** join/#gllug Leeds (~richardc@202.130.86.146) |
08:09.27 | morsing | Leeds! |
08:34.19 | j0nr | morning |
08:34.39 | j0nr | I need a brain to pick about bash scripting |
08:38.47 | j0nr | I wish to simply test how many files with a certain name exist.... so far: |
08:38.49 | j0nr | if `ls *filename* | wc -l` > 10; then echo 'greater than 10'; fi |
08:52.11 | Leeds | er, no |
08:52.20 | Leeds | > is file redirection, not greater-than testing |
08:52.39 | Leeds | you want to use something more like if [ $(ls *filename* | wc -l) -gt 10 ] |
08:55.09 | Leeds | note that it will fail if no files match at all |
08:56.39 | j0nr | Leeds: Aha! Thank you! |
09:23.18 | morsing | j0nr! |
10:32.49 | *** join/#gllug Leeds (~richardc@n218103199220.netvigator.com) |
10:33.40 | ChoHag | j0nr: If you do files=(*filename*), then ${#files} is how many files match. |
10:33.46 | ChoHag | Bash arays ftw. |
11:05.51 | j0nr | ChoHag: Nice! |
12:00.53 | *** join/#gllug dick_turpin (~peter@host217-34-163-30.in-addr.btopenworld.com) |
12:01.23 | dick_turpin | lo |
12:02.18 | boudiccas | hi sexy! :) |
12:04.18 | boudiccas | dick_turpin; hi sexy! :) |
12:06.11 | dick_turpin | boudiccas: Show us your knickers |
12:06.35 | boudiccas | no, ypu've already seen them |
12:07.32 | dick_turpin | Damn |
12:08.17 | dick_turpin | Show us your high heels (Although I do have a thing about Dragoon boots tbh) |
12:09.25 | boudiccas | i haven't got any high heels, nor dragoon boots either |
12:10.39 | dick_turpin | Hm? Sensible shoes will have to do I suppose. :-( |
12:11.19 | boudiccas | i've got sandals |
12:11.31 | boudiccas | and dr martins |
12:17.55 | dick_turpin | Sandals and a bed sheet, perfect |
12:18.27 | boudiccas | que? |
12:26.56 | dick_turpin | Toga |
12:27.33 | boudiccas | ah right |
12:27.44 | boudiccas | like you saw in Rome? |
12:32.17 | dick_turpin | Yes, we know how to have a good time. :-) |
12:47.00 | j0nr | argh, whats wrong with this: |
12:47.57 | j0nr | for P in $(ls $repositories); do ttlSvn=$(ls *_$P_* | wc -l) echo $ttlSvn; done |
12:48.27 | j0nr | I want to list how many times files with $P in their name appear in a directory |
12:56.34 | boudiccas | dick_turpin; i liked the photo of the roman soldier |
12:57.06 | boudiccas | dick_turpin; when you were talking to him |
12:57.48 | dick_turpin | I bet you did, he did have rather a large weapon. :-) |
12:59.20 | boudiccas | you mean his gladius? |
13:00.13 | dick_turpin | Some call it that |
13:00.32 | boudiccas | thats its proper latin name |
13:02.10 | boudiccas | dick_turpin; did i tell you that i am a F.R.A.I? of long standing too :) |
13:02.53 | boudiccas | Fellow of the Royal Archaeolgical Institute |
13:03.14 | dick_turpin | Ooh really? |
13:03.23 | boudiccas | yes really |
13:03.41 | boudiccas | archaeology has long been an interest of mine |
13:04.04 | dick_turpin | I love historical stuff |
13:04.21 | boudiccas | you ought to go on a dig, they're good fun |
13:04.33 | dick_turpin | waits for the "That's because you're an old fossil" |
13:05.00 | boudiccas | no, thats palaeontolgy |
13:05.12 | boudiccas | palaeontology |
13:11.09 | dick_turpin | If 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.54 | dick_turpin | How cool would that be? "Oh yes that's by Dominicius he done the ones in Tower Hamlets you know" |
13:13.27 | boudiccas | dick_turpin; you could do A-level archaeology and do that for your thesis |
13:14.58 | dick_turpin | Well 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.48 | boudiccas | make 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.53 | dick_turpin | I suspect my idea has already been done anyway |
13:17.21 | boudiccas | no idea baout the mosaics |
13:17.28 | boudiccas | about |
16:26.45 | *** join/#gllug _ana_ (~anna@194.74.241.4) |
17:00.17 | ChoHag | http://i.imgur.com/BJXfk.jpg |