Skip to content
Snippets Groups Projects

Batch setpid

Merged bbartels requested to merge batch-setpid into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -2,7 +2,7 @@
# Use default filename if it wasn't given at the command line
if [ $# -eq 0 ]; then
filename="parameters.txt"
filename="scripts/parameters.txt"
else
filename=$1
fi
@@ -14,4 +14,4 @@ regex='(lat|long|height|pitch|roll|yaw|pitchv|rollv|yawv) (p|i|d) ([-+]?[0-9]*\.
awk_prog='{print "./Cli setpid" " " "--" $1 " " "-" $2 " " $3}'
# Search, parse, and execute ./Cli commands
grep -E "$regex" $filename | awk "$awk_prog" | bash
grep -E "$regex" $filename | awk "$awk_prog" | bash
\ No newline at end of file
Loading