Skip to content

Instantly share code, notes, and snippets.

@jamierob
Created October 2, 2018 16:57
Show Gist options
  • Save jamierob/d18f3d751893a416b6acae919cf9b3ea to your computer and use it in GitHub Desktop.
Save jamierob/d18f3d751893a416b6acae919cf9b3ea to your computer and use it in GitHub Desktop.
bash -x output
This is working much better and I understand what I was doing wrong. 'bash -x' outputs the following, which seems like it's not getting the 'wc -l' part correct. Is the whitespace in front of '92' and '91' messing things up as well?
+ for f in '*.csv'
++ csvgrep -n file4col.csv
++ wc -l
+ [[ 92 == 91 ]]
+ cat -- /Users/xlsxtocsv/svcheader.txt file4col.csv
+ for f in '*.csv'
++ csvgrep -n file3col.csv
++ wc -l
+ [[ 91 == 91 ]]
+ cat -- /Users/xlsxtocsv/svcheader.txt file3col.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment