Edit in place or LUAU, and how? #2388
-
given a table
and one looking like
I would like the output to look like
So, I want to take all glue records and if the name in the first (glue) column appears in the ns1 column of the first file I want the ip1 address to be entered, whether it is empty as in this example of not. In as few as QSV commands in a pipe as possible. If it can be done with LUAU I would greatly appreciate a pointer. I am not averse to RTFM :-)-O |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'm not sure but maybe a LEFT JOIN comes close to what you want to achieve? =>
|
Beta Was this translation helpful? Give feedback.
I'm not sure but maybe a LEFT JOIN comes close to what you want to achieve?
If the first file is named fqdn.csv and the second one glue.csv:
qsv join --left ns1 fqdn.csv glue glue.csv | qsv select fqdn,ns1,ip
=>