Monthly Archives: July 2012

Useful one-liner to get the number of fields in the file

Today at work I had to figure out how many observations in large text file were broken. Each line represents observation. For some reason the script which produced the file was breaking sometimes so the lines were shorter than expected. … Continue reading

Posted in Bash | Tagged | Leave a comment