Skip to content

Instantly share code, notes, and snippets.

@shorock
Created March 23, 2017 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shorock/d93af704538157a5ee2b5112a747bd8e to your computer and use it in GitHub Desktop.
Save shorock/d93af704538157a5ee2b5112a747bd8e to your computer and use it in GitHub Desktop.
Cut out the _version_ column in solr dumps
for f in `ls *csv`
do
mv $f "$f.bak"
csvcut -C _version_ "$f.bak" > $f
rm "$f.bak"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment