[08:56] morning all [08:56] yo [08:56] what is the best why to find a file , just grep the whole disk [08:57] find [08:57] there's a command for it. [08:57] that'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:58] ah that is better [08:58] thanks ebel [09:01] much much much quicker [09:04] were you grepping "grep /dev/sda1" ? :P [09:14] na even worse grep /* [09:14] bad mistake , it was even looking in /proc [09:15] only had it going for a minute and said to myself this cant be right [09:15] hehehe [09:15] "find /" will do similar [09:15] but you can add in "-x" or something to restrict it to only one device [09:16] but not open the files :) [09:16] lots of unix commands that do recursiveness often have an option to only stay on one device. [09:16] I 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 something [09:17] and 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 :P [09:17] you dont need /proc [09:17] You can look into the files with the -exec argument to find [09:18] or pipe through xargs, parrellel, etc. [09:18] it is a virtual file system [09:19] yep [09:21] morning [09:29] hey airurando [09:29] hi tdr112 [09:29] long time no see [09:29] you all set for electric picnic? [09:32] nope , i hope to get my tent and all that this weekend if i dont have to work [09:35] * airurando won't be able to make the early part of the release party on 15 oct 11 due to work :( [09:36] shift 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:37] Some other poor sod has to be drafted in to help me so no point in even asking for time off. [09:42] We've got the OK from TOG for a global jam there [09:42] So there'll be a Dublin venue for the Ubuntu Global Jam, in TOG [09:59] airurando: 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 picnic [10:01] tdr112 no I think it is ok [10:02] a few of them were at the monthly meeting on the 17th and they said they were going ahed with it. [10:02] they put it up on their calendar of events so I generated the loco dir listing based on that [10:03] charles-091labs said he was going to electric picnic with you but some other members stepped up to the plate (fair play to them) [10:04] yep but i only got them to come to ep the other night , [10:13] tdr112 I don't follow. what is ep? [10:13] electric picnic [10:14] thanks ebel [10:15] some hackerspace people are going to do demos and stuff (right?) [10:15] tdr112 are you sure they are all going? [10:15] that is not the way it was portrayed at the monthly meeting [10:16] tdr112 could you clarify this as we'll have to pull the Galway one down from the loco dir if it is not going ahead [10:16] airurando: 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 ahead [10:17] thanks [10:18] it is still listed on their upcoming events [14:53] any one know how to go from unix time to real time [14:53] date [14:54] i have a time in millseconds [14:54] since 1970 [14:54] i want its real time [14:55] with @ [14:55] e.g. date -d "@1234567890" [14:55] date -d SOMETHING will parse and print the date represented by SOMETHING [14:56] (pedantically unix time is only approximately the number of seconds since 1st jan 1970, it doesn't include leap seconds) [14:56] probably not relevant for you, but remember sometimes unix time can go backwards. [14:57] (when a leap second occurs the unix time might go forwards then backwards to make all the sums add up) [14:57] so i have this 13143700177851471228928 [14:58] i want it in normal time [14:58] date -d "@13143700177851471228928" [14:59] now working [15:01] ah ok its not linux its a java problem , my * was in int when it should be long [15:04] you divide by 1,000,000 to get from nanosec to seconds? [15:04] sorry, 1,000 to get from millisec [15:05] might 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:06] (if there is a spec ;) ) [15:06] (very much depends on how accurate you want/need it to be)