Skip to content

Ugly CSV Adventure and possible clean-whitespace issue #603

Answered by aborruso
Gary-Armstrong asked this question in Q&A
Discussion options

You must be logged in to vote

Only 3 columns

curl -kL "https://gist.githubusercontent.com/Gary-Armstrong/c0fa8631ead9db7c7d44ac471cd9b0a8/raw/ef1535f6ca56c5aa52d3dfa37388e23ed46824e6/AWS%2520Inspector%252028%2520column%2520CSV" | \
mlr --csv -N cut -f 3,12,19 then put -S 'for (k in $*) {$[k] = gsub($[k], "\n", " ");}' then clean-whitespace >3c_output.csv

the output is this https://gist.github.com/aborruso/1cfbb905d82c749114b8ace5d04e7212

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Gary-Armstrong
Comment options

@Gary-Armstrong
Comment options

@aborruso
Comment options

Comment options

You must be logged in to vote
1 reply
@Gary-Armstrong
Comment options

Comment options

You must be logged in to vote
3 replies
@Gary-Armstrong
Comment options

@Gary-Armstrong
Comment options

@aborruso
Comment options

Answer selected by Gary-Armstrong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants