Timeline for Awk/sed to separate last column and add quotes around middle column?
Current License: CC BY-SA 4.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 30, 2021 at 3:30 | answer | added | guest_7 | timeline score: 1 | |
| Nov 29, 2021 at 14:59 | vote | accept | KBwonder | ||
| Nov 29, 2021 at 14:10 | history | edited | KBwonder | CC BY-SA 4.0 | added 8 characters in body |
| Nov 29, 2021 at 14:04 | history | edited | KBwonder | CC BY-SA 4.0 | deleted 525 characters in body |
| Nov 29, 2021 at 13:57 | comment | added | KBwonder | Okay, I thought keeping that part vague would have made it actually easier to come up with a solution but I will edit my question. | |
| Nov 28, 2021 at 17:21 | answer | added | Hauke Laging | timeline score: 1 | |
| Nov 28, 2021 at 17:14 | answer | added | Garnet | timeline score: -3 | |
| Nov 28, 2021 at 15:58 | answer | added | Kusalananda♦ | timeline score: 1 | |
| Nov 28, 2021 at 15:53 | comment | added | Kusalananda♦ | Do you want to remove the numbers in parentheses at the end of the lines, or do you want to make a separate column with these? | |
| Nov 28, 2021 at 15:52 | comment | added | Nasir Riley | Then you've typed it incorrectly because that command does not produce the output that you have. Like it says, the sed command has a syntax error. It needs to be sed -r 's/ +/;/' test.txt whereas you have sed -r 's/ +/;' test.txt which doesn't work with any version of sed. | |
| Nov 28, 2021 at 15:47 | history | edited | KBwonder | CC BY-SA 4.0 | added 90 characters in body |
| Nov 28, 2021 at 15:47 | comment | added | KBwonder | My sed and awk are GNU versions | |
| Nov 28, 2021 at 15:41 | comment | added | KBwonder | I'm using Windows Linux sub-system and the awk I have is version 4.1.3 and sed version is 4.2.2. These commands work for me | |
| Nov 28, 2021 at 15:26 | comment | added | Nasir Riley | Where are the last two lines with Carbon metabolism coming from. The command that you are using gives a syntax error in several versions of sed so I don't see how it's producing the output that you have. What OS is this and what version of sed and awk? Are they the GNU versions? | |
| Nov 28, 2021 at 15:09 | history | edited | KBwonder | CC BY-SA 4.0 | edited title |
| Nov 28, 2021 at 14:59 | history | asked | KBwonder | CC BY-SA 4.0 |