Timeline for Piping a command's output to a variable in body of awk script
Current License: CC BY-SA 3.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 2, 2016 at 13:03 | history | edited | Jeff Schaller♦ |
edited tags
|
|
| Nov 2, 2016 at 5:08 | answer | added | Wildcard | timeline score: 0 | |
| Nov 2, 2016 at 4:59 | comment | added | Wildcard |
@KMoy, this is relevant. I'm having trouble understanding why you would want the sorted list after both ------ lines and not before. Did I get that correctly that that's what you want?
|
|
| Nov 2, 2016 at 4:27 | comment | added | Anonymous | @Wildcard Apologies, but I am still very very new at scripting in general.. would you mind showing me your shell wrapper example in a full answer? I still need to print the sorted stuff along with the two dashed lines in the original script, not just the sorted stuff. | |
| Nov 2, 2016 at 4:14 | comment | added | Wildcard |
Since the sort command can't terminate until it receives an end-of-file, and you never close it, this seems a bit silly. Why not just add a shell wrapper script to pipe the output of the Awk script through sort?
|
|
| Nov 2, 2016 at 3:20 | answer | added | Kamaraj | timeline score: 2 | |
| Nov 2, 2016 at 2:59 | answer | added | Cheatcode | timeline score: 0 | |
| Nov 2, 2016 at 2:41 | comment | added | Anonymous |
As of now, I'm using traditional awk. I did man asorti and didn't come up with anything.
|
|
| Nov 2, 2016 at 2:39 | comment | added | steeldriver |
What flavor of awk? Does it have an asorti function?
|
|
| Nov 2, 2016 at 2:28 | comment | added | Anonymous | @Kamaraj edited. | |
| Nov 2, 2016 at 2:28 | history | edited | Anonymous | CC BY-SA 3.0 |
added 141 characters in body
|
| Nov 2, 2016 at 2:25 | comment | added | Kamaraj | can you give the input file contents. | |
| Nov 2, 2016 at 2:24 | review | First posts | |||
| Nov 2, 2016 at 3:59 | |||||
| Nov 2, 2016 at 2:23 | history | asked | Anonymous | CC BY-SA 3.0 |