Timeline for Finding out the common lines in two files using 4 fields using awk and UNIX
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 28, 2013 at 4:16 | comment | added | Lri | If a has an index like $1"\034"$2"\034"$4"\034"$5, a[$1,$2,$4,$5] returns the value of the element at that index. Otherwise a[$1,$2,$4,$5] adds a new element at that index whose value is an empty string, and b is assigned to an empty string, which evaluates to false. | |
| Aug 27, 2013 at 16:12 | comment | added | mike | Okay, then I don't understand it. Could you please elaborate on the control flow? | |
| Aug 27, 2013 at 12:12 | comment | added | Lri | = is an assignment, not a comparison. | |
| Aug 27, 2013 at 11:59 | comment | added | mike | As I understand, in the second file you check if(b=a[$1,$2,$4,$5]) but where is b defined? Is that an implicit definition? | |
| Aug 27, 2013 at 11:11 | history | edited | Lri | CC BY-SA 3.0 | added 119 characters in body |
| Aug 27, 2013 at 10:50 | history | edited | Lri | CC BY-SA 3.0 | deleted 11 characters in body |
| Aug 27, 2013 at 10:50 | vote | accept | Namrata | ||
| Aug 27, 2013 at 10:49 | vote | accept | Namrata | ||
| Aug 27, 2013 at 10:50 | |||||
| Aug 27, 2013 at 10:27 | history | answered | Lri | CC BY-SA 3.0 |