Skip to content

Instantly share code, notes, and snippets.

@lukas-koschmieder
Last active June 27, 2018 14:32
Show Gist options
  • Select an option

  • Save lukas-koschmieder/5b9f3e08e5757a72ae167e336ebcad52 to your computer and use it in GitHub Desktop.

Select an option

Save lukas-koschmieder/5b9f3e08e5757a72ae167e336ebcad52 to your computer and use it in GitHub Desktop.
Convert raw ODF to Dream.3D StatsGenerator ODF
#!/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