Skip to content

Instantly share code, notes, and snippets.

@GiovanniBalestrieri
Created April 13, 2016 14:26
Show Gist options
  • Save GiovanniBalestrieri/1fb1a0672e0983f417f693283fe95200 to your computer and use it in GitHub Desktop.
Save GiovanniBalestrieri/1fb1a0672e0983f417f693283fe95200 to your computer and use it in GitHub Desktop.
Merges two files in one and sorts lines
trainingSet="trainingSet"
#Merge positive and negative instances in a new Training file
cat $csvPath/${file} $csvPath/${fileNo} > $csvPath/${trainingSet}.csv
#Sort lines in file
sort -R $csvPath/${trainingSet} -o $csvPath/${trainingSet}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment