[03:14] hi there, [03:14] Is there a command in ubuntu so that I can add a line to a .conf file if it's not existed yet? [03:15] echo "hello" >> my_file.conf [03:15] but it will keep adding hello to the new line [03:15] thanks :) [03:16] [ ! -e "$my_file.conf" ] && echo "hello" > my_file.conf [03:30] stgraber : thanks for the answer, but it's replacing the whole file not adding a new line. [03:41] just >> then [03:42] well, I guess you actually want: [03:42] grep "^hello$" my_file.conf -q && echo "hello" >> my_file.conf [03:42] hmm, that's wrong, I meant: grep "^hello$" my_file.conf -q || echo "hello" >> my_file.conf [03:42] which will only append hello to the file if it's not already in there [04:07] stgraber : thanks, it's worked now. :D [06:58] Hi how to find a line with a word such as #*.* localhost [06:58] where we don't care about how many space between #*.* localhost [06:58] thanks [15:37] highvoltage: new Edubuntu image available for testing [15:37] highvoltage: FWIW I tested 14.1 yesterday and it looked reasonably good [15:38] highvoltage: we still have the weird issue where Unity starts when using flashback with compiz but I doubt we'll get that resolved by release [17:38] I'm trying to install edubuntu with wubi, but it kept failing out at distro checks; first it was unable to locate the vmlinuz (because it had a .efi extention, rebuilt the iso to fix that) and now it's failing because 12.04.03 != 12.04.02; where should I change the 03 to 02 at?