/srv/irclogs.ubuntu.com/2011/08/26/#ubuntu-ie.txt

tdr112morning all08:56
ebelyo08:56
tdr112what is the best why to find a file , just grep the whole disk08:56
ebelfind08:57
ebelthere's a command for it.08:57
ebelthat'll find files (& directories) based on the name, location, size etc. Do you need to search inside a file or just the name/path/etc?08:57
tdr112ah that is better08:58
tdr112thanks ebel08:58
tdr112much much much quicker09:01
ebelwere you grepping "grep /dev/sda1" ? :P09:04
tdr112na even worse grep /*09:14
tdr112bad mistake , it was even looking in /proc09:14
tdr112only had it going for a minute and said to myself this cant be right09:15
ebelhehehe09:15
ebel"find /" will do similar09:15
ebelbut you can add in "-x" or something to restrict it to only one device09:15
tdr112but not open the files :)09:16
ebellots of unix commands that do recursiveness often have an option to only stay on one device.09:16
ebelI was backing up a server once and copying all the files. I wondered if it was a good idea to do it with /proc (or /dev) or something09:16
ebeland someone pointed out that /dev/kmem (?) is the contents of the RAM of the machine, and that it would not be wise to restore that to an existing system :P09:17
tdr112you dont need /proc09:17
ebelYou can look into the files with the -exec argument to find09:17
ebelor pipe through xargs, parrellel, etc.09:18
tdr112it is a virtual file system09:18
ebelyep09:19
airurandomorning09:21
tdr112hey airurando09:29
airurandohi tdr11209:29
airurandolong time no see09:29
airurandoyou all set for electric picnic?09:29
tdr112nope , i hope to get my tent and all that this weekend if i dont have to work09:32
* airurando won't be able to make the early part of the release party on 15 oct 11 due to work :(09:35
airurandoshift has gone from 4 to 3 people and that weekend one of the girls is getting married with the other going to the wedding.09:36
airurandoSome other poor sod has to be drafted in to help me so no point in even asking for time off.09:37
ebelWe've got the OK from TOG for a global jam there09:42
ebelSo there'll be a Dublin venue for the Ubuntu Global Jam, in TOG09:42
tdr112airurando: we will have to get back onto the galway lads again about bug jam , as i think i stole them for the hackerspace at electric picnic09:59
airurandotdr112 no I think it is ok10:01
airurandoa few of them were at the monthly meeting on the 17th and they said they were going ahed with it.10:02
airurandothey put it up on their calendar of events so I generated the loco dir listing based on that10:02
airurandocharles-091labs said he was going to electric picnic with you but some other members stepped up to the plate (fair play to them)10:03
tdr112yep but i only got them to come to ep the other night ,10:04
airurandotdr112 I don't follow. what is ep?10:13
ebelelectric picnic10:13
airurandothanks ebel10:14
ebelsome hackerspace people are going to do demos and stuff (right?)10:15
airurandotdr112 are you sure they are all going?10:15
airurandothat is not the way it was portrayed at the monthly meeting10:15
airurandotdr112 could you clarify this as we'll have to pull the Galway one down from the loco dir if it is not going ahead10:16
tdr112airurando: i have talk to them since the monthly meeting , 3 out of the 4 are going , i will email them now to confirm they are going ahead10:16
airurandothanks10:17
airurandoit is still listed on their upcoming events10:18
tdr112any one know how to go from unix time to real time14:53
ebeldate14:53
tdr112i have a time in millseconds14:54
tdr112since 197014:54
tdr112i want its real time14:54
ebelwith @14:55
ebele.g. date -d "@1234567890"14:55
ebeldate -d SOMETHING will parse and print the date represented by SOMETHING14:55
ebel(pedantically unix time is only approximately the number of seconds since 1st jan 1970, it doesn't include leap seconds)14:56
ebelprobably not relevant for you, but remember sometimes unix time can go backwards.14:56
ebel(when a leap second occurs the unix time might go forwards then backwards to make all the sums add up)14:57
tdr112so i have this 1314370017785147122892814:57
tdr112i want it in normal time14:58
tdr112date -d "@13143700177851471228928"14:58
tdr112now working14:59
tdr112ah ok its not linux its a java problem , my * was in int when it should be long15:01
ebelyou divide by 1,000,000 to get from nanosec to seconds?15:04
ebelsorry, 1,000 to get from millisec15:04
ebelmight wanna double check the source for your numbers. see if the specs say "unix time" or "milliseconds since 00:00 1st jan 1970", cause there could be a difference due to leap seconds.15:05
ebel(if there is a spec ;) )15:06
ebel(very much depends on how accurate you want/need it to be)15:06

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!