Skip to content

Instantly share code, notes, and snippets.

@GiovanniBalestrieri
Created April 13, 2016 14:20
Show Gist options
  • Save GiovanniBalestrieri/5175dc34676635a6f5ed178bdd232ee3 to your computer and use it in GitHub Desktop.
Save GiovanniBalestrieri/5175dc34676635a6f5ed178bdd232ee3 to your computer and use it in GitHub Desktop.
Saves in variables the number of lines from a file
# Controls the length of files
echo "Controlling length of files:"
numLab=$(cat $csvPath/${file} | wc -l)
echo "Labelled: ${numLab}"
numUnLab=$(cat $csvPath/${fileNo} | wc -l)
echo "UnLabelled: ${numUnLab}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment