24 lines
440 B
Bash
Executable File
24 lines
440 B
Bash
Executable File
#!/bin/bash
|
|
set -o nounset # Treat unset variables as an error
|
|
set -e
|
|
|
|
if [ -e "$1" ]
|
|
then
|
|
awk '/tangent angle/ {print $4}' "$1" > tangent_data.txt
|
|
fi
|
|
|
|
if [ -e "$1" ]
|
|
then
|
|
awk '/circ[12] angle/ {print $4}' "$1" > angle_data.txt
|
|
fi
|
|
|
|
if [ -e "$1" ]
|
|
then
|
|
awk '/circ[12] spiral/ {print $4}' "$1" > spiral_data.txt
|
|
fi
|
|
|
|
if [ -e "$1" ]
|
|
then
|
|
awk '/circ[12] spiral/ {print $4}' "$1" > spiral_data.txt
|
|
fi
|