Timeline for Combine columns using awk? (Or other suggestions)
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 20, 2015 at 15:19 | comment | added | David King | It does but for file sizes like what were mentioned that shouldn't be an issue. In fact the files can get quite large without causing an issue. | |
| Nov 20, 2015 at 15:17 | comment | added | iruvar |
A bigger problem with for a in $(cat file1) is that the $(cat file) command substitution forces the shell to load the contents of the file into memory
|
|
| Nov 20, 2015 at 15:11 | comment | added | David King | The biggest reason the first link could give for not using a for loop is that it collapses consecutive delimiters (in this case newlines). For the OP this is desirable behavior. The second link just provides alternatives to my solution. Why not post your own answer with those options or flag the question as a duplicate? | |
| Nov 20, 2015 at 14:55 | comment | added | iruvar | see this and this | |
| Nov 20, 2015 at 13:28 | history | answered | David King | CC BY-SA 3.0 |