Timeline for BASH: Using awk to filter unique lines results in 0 length array
Current License: CC BY-SA 3.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:36 | history | edited | CommunityBot |
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
|
|
| Jun 22, 2016 at 4:33 | history | edited | Mike | CC BY-SA 3.0 |
added 4 characters in body
|
| Jun 22, 2016 at 0:00 | answer | added | dave_thompson_085 | timeline score: 1 | |
| Jun 21, 2016 at 20:52 | comment | added | Wildcard | Mike, it's perfectly acceptable (and indeed even encouraged) to answer your own question. You can take the edit you just made and post it as an answer, instead. :) | |
| Jun 21, 2016 at 20:41 | vote | accept | Mike | ||
| Jun 21, 2016 at 20:19 | answer | added | user162946 | timeline score: 3 | |
| Jun 21, 2016 at 20:10 | history | edited | Mike | CC BY-SA 3.0 |
added 280 characters in body
|
| Jun 21, 2016 at 20:03 | history | edited | Mike | CC BY-SA 3.0 |
added 280 characters in body
|
| Jun 21, 2016 at 19:52 | history | edited | Mike | CC BY-SA 3.0 |
added 280 characters in body
|
| Jun 21, 2016 at 19:28 | comment | added | Mike | @Theophrastus, I wanted the input in the original order minus duplicate lines; not sorted. | |
| Jun 21, 2016 at 19:17 | comment | added | Mike | Thanks again. Assigning the result of awk to a variable and processing it resolved the issue. Is there a to tag correct answers? | |
| Jun 21, 2016 at 19:15 | comment | added | steeldriver | Sess the suggestions here Why is the array empty after the while loop? and its linked questions | |
| Jun 21, 2016 at 19:13 | comment | added | Jeff Schaller♦ | see unix.stackexchange.com/q/9954/117549 for more explanation | |
| Jun 21, 2016 at 19:09 | comment | added | Mike | Thank you for the reply. Sorry to be dense, but how would I resolve this? Assign the result of awk to a variable and process it? I considered this but as the list form stdin but be large it seemed like unnecessary overhead. | |
| Jun 21, 2016 at 19:06 | history | edited | Jeff Schaller♦ |
edited tags
|
|
| Jun 21, 2016 at 19:05 | comment | added | Jeff Schaller♦ | The pipe creates a subshell (with its own variables) | |
| Jun 21, 2016 at 19:03 | review | First posts | |||
| Jun 21, 2016 at 19:06 | |||||
| Jun 21, 2016 at 18:59 | history | asked | Mike | CC BY-SA 3.0 |