[10:49] <teddy-dbear> Morning peoples, critters and everything else
[17:28] <ChinnoDog> I don't want to teach noobs to contribute kernel patches. lol
[17:29] <jthan> ChinnoDog: why not?
[17:29] <jthan> live a little :-)
[17:30] <mutantturkey> feeling a bit dumb here but
[17:30] <mutantturkey> awk '{print $0"foo"} < file  should give me like
[17:30] <mutantturkey> line 1foo
[17:30] <mutantturkey> line 2foo
[17:30] <mutantturkey> but i am getting fooline 1
[17:33] <mutantturkey> hm might be something funkey with the lineendings
[17:36] <jthan> mutantturkey: yo'ure missing a ' at the end of the } if you didn't just forget to retype to us
[17:37] <mutantturkey> i just mistyped it
[17:37] <mutantturkey> its happening with sed to
[17:38] <jthan> oh
[17:38] <jthan> mutantturkey: while read line; do awk '{print "$0 foo"}'; done < file
[17:39] <jthan> still not quite right
[17:39] <jthan> jonathan@karma:~$ cat mt.txt | while read line; do awk '{print $1 "foo"}'; done
[17:39] <jthan> ^ that one works.
[17:39] <waltman> if you run 'file file', what does it say?
[17:39] <jthan> lifoo
[17:39] <jthan> linfoo
[17:39] <jthan> linefoo
[17:39] <jthan> linerfoo
[17:39] <jthan> lineiestfoo
[17:40] <waltman> You might be adding the foo after the newline and/or carriage return
[17:40] <jthan> no, he isn't looping with his current syntax.
[17:42] <waltman> what does this output: perl -pe 's/$/foo/' file