in reply to one liner to capture value of field and insert in another field
(see perlrun for details)$ perl -F'\|' -lane '$F[10] = $F[7]; print join "|", @F' file.txt row|1|CUSIP|12345678|RED|||20150125|||20150125| row|1|CUSIP|1234A82H|RED|||20150316|||20150316|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: one liner to capture value of field and insert in another field
by dirtdog (Monk) on Jan 28, 2015 at 15:41 UTC | |
|
Re^2: one liner to capture value of field and insert in another field
by Anonymous Monk on Jan 28, 2015 at 15:37 UTC | |
|
Re^2: one liner to capture value of field and insert in another field
by dirtdog (Monk) on Jan 28, 2015 at 16:04 UTC | |
by choroba (Cardinal) on Jan 28, 2015 at 16:38 UTC | |
by Anonymous Monk on Jan 28, 2015 at 16:45 UTC | |
by Anonymous Monk on Jan 28, 2015 at 16:09 UTC | |
by dirtdog (Monk) on Jan 28, 2015 at 16:24 UTC |