=== r00t^2 is now known as jth4n | ||
=== jth4n is now known as r00t^2 | ||
teddy-dbear | Morning peoples, critters and everything else | 10:49 |
---|---|---|
ChinnoDog | I don't want to teach noobs to contribute kernel patches. lol | 17:28 |
jthan | ChinnoDog: why not? | 17:29 |
jthan | live a little :-) | 17:29 |
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:30 |
mutantturkey | hm might be something funkey with the lineendings | 17:33 |
jthan | mutantturkey: yo'ure missing a ' at the end of the } if you didn't just forget to retype to us | 17:36 |
mutantturkey | i just mistyped it | 17:37 |
mutantturkey | its happening with sed to | 17:37 |
jthan | oh | 17:38 |
jthan | mutantturkey: while read line; do awk '{print "$0 foo"}'; done < file | 17:38 |
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:39 |
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:40 |
waltman | what does this output: perl -pe 's/$/foo/' file | 17:42 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!