/srv/irclogs.ubuntu.com/2017/11/08/#ubuntu-us-pa.txt

=== r00t^2 is now known as jth4n
=== jth4n is now known as r00t^2
teddy-dbearMorning peoples, critters and everything else10:49
ChinnoDogI don't want to teach noobs to contribute kernel patches. lol17:28
jthanChinnoDog: why not?17:29
jthanlive a little :-)17:29
mutantturkeyfeeling a bit dumb here but17:30
mutantturkeyawk '{print $0"foo"} < file  should give me like17:30
mutantturkeyline 1foo17:30
mutantturkeyline 2foo17:30
mutantturkeybut i am getting fooline 117:30
mutantturkeyhm might be something funkey with the lineendings17:33
jthanmutantturkey: yo'ure missing a ' at the end of the } if you didn't just forget to retype to us17:36
mutantturkeyi just mistyped it17:37
mutantturkeyits happening with sed to17:37
jthanoh17:38
jthanmutantturkey: while read line; do awk '{print "$0 foo"}'; done < file17:38
jthanstill not quite right17:39
jthanjonathan@karma:~$ cat mt.txt | while read line; do awk '{print $1 "foo"}'; done17:39
jthan^ that one works.17:39
waltmanif you run 'file file', what does it say?17:39
jthanlifoo17:39
jthanlinfoo17:39
jthanlinefoo17:39
jthanlinerfoo17:39
jthanlineiestfoo17:39
waltmanYou might be adding the foo after the newline and/or carriage return17:40
jthanno, he isn't looping with his current syntax.17:40
waltmanwhat does this output: perl -pe 's/$/foo/' file17:42

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