[10:10] <PedroAlvarez> Hi! How can I know if cloud-init is installed on my OS?
[10:15] <PedroAlvarez> btw,. smoser, I hacked the setup script to support an older grep version.
[10:16] <PedroAlvarez> The grep commands on the script are using perl regular expressions
[11:20] <kwadronaut> PedroAlvarez: which OS are you using?
[11:21] <PedroAlvarez> kwadronaut: custom core linux distro
[11:31] <kwadronaut> i don't know that one, i'd say use your package manager and see if it's installed, have a look in /etc/cloud* /var/log/cloud* do a find for CloudConfig on your filesystem.
[11:32] <PedroAlvarez> kwadronaut: Sorry, you miss understood me, Is not a distro.
[11:33] <PedroAlvarez> It wasn't installed. Now I have it working in my OS, time to solve dependencies! :) thanks!
[12:48] <smoser> PedroAlvarez, so 'tools/read-dependencies' wsa giving you grief? if you have a suitable replacement for that grep, that is fine.
[12:54] <PedroAlvarez> smoser: the grep commands in  'tools/read-dependencies' works fine without the '-P' option.
[12:56] <PedroAlvarez> smoser: but I had to change the 'tools/read-version' grep's regular expression, using '[0-9][0-9]*' instead '\d+'.
[12:58] <smoser> PedroAlvarez, does this work for you: http://paste.ubuntu.com/6070291/
[13:01] <PedroAlvarez> smoser: I did this and it worked: http://paste.ubuntu.com/6070304/
[13:02] <smoser> http://paste.ubuntu.com/6070306/
[13:02] <smoser> can you try that diff, pedro ?
[13:02] <smoser> PedroAlvarez, 
[13:04] <smoser> or i could do them both with sed. does your sed have '-n' ?
[13:08] <smoser> VERSION=$(sed -n '/^[0-9]\+[.][0-9]\+[.][0-9]\+:/ { s/://; p; :a;n; ba}' "$CHNG_LOG")
[13:10] <PedroAlvarez> sorry smoser: I cannot send you diff now.
[13:11] <PedroAlvarez> I used this and worked fine
[13:11] <PedroAlvarez> VERSION=$(grep "[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*:" "$CHNG_LOG"  | cut -f1 -d ":" | head -n 1)
[13:11] <smoser> well, if youcould tell me if this works, i'd appreciate it.
[13:11] <smoser> http://paste.ubuntu.com/6070331/
[13:11] <smoser> i suspect it does
[13:11] <smoser> sed -n is nothing new.
[13:11] <PedroAlvarez> -n	Suppress automatic printing of pattern space
[13:11] <PedroAlvarez> supported here ;)
[13:11] <smoser> right.
[13:12] <smoser> it was supported on aix in 1999, so i figure its pretty safe.
[13:13] <PedroAlvarez> smoser: I will tell you later if it work, thanks for helping
[13:13] <PedroAlvarez> s/work/works/
[17:01] <smoser> http://paste.ubuntu.com/6071174/
[17:01] <smoser> harlowja, ^ is a "shell parser" 
[17:05] <smoser>  http://paste.ubuntu.com/6071190/
[17:05] <smoser> and there it runs with 'bash -r'
[17:09] <smoser> https://gist.github.com/smoser/6466708
[17:15] <harlowja> holy crap
[17:16] <harlowja> your shell foo is better than mine, ha