Last active
June 27, 2018 14:32
-
-
Save lukas-koschmieder/5b9f3e08e5757a72ae167e336ebcad52 to your computer and use it in GitHub Desktop.
Convert raw ODF to Dream.3D StatsGenerator ODF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| tmpfile=/tmp/$USER-$RANDOM | |
| angleCount=$(awk '{ printf "%s %s %s 0.75 1.0\n", $1, $2, $3, $4}' $1 | grep "^[0-9]" | column -t | tee $tmpfile | wc -l) | |
| echo "Angle Count: $angleCount" | |
| cat $tmpfile | |
| rm $tmpfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment