retain headers with find?

30 views
Skip to first unread message

sbrau...@laterpay.ag

unread,
Feb 16, 2016, 8:45:26 AM2/16/16
to csvfix
Is there a way to retain headers with find, or do I have to store the header row separately and concatenate it back on after doing a `csvfix find` command?

Stig

sbrau...@laterpay.ag

unread,
Feb 18, 2016, 1:18:59 PM2/18/16
to csvfix, sbrau...@laterpay.ag
Answering myself, in case others have the same issue:

csvfix find -if '$line == 1 || $1 == "pattern1"'

I think find could use a '--keep-header' option, which would be a bit neater IMO.

Stig
Reply all
Reply to author
Forward
0 new messages