NWChem/QA/round_esp.sh
Yuri Victorovich 7b3d60dce7 Fix bash shebangs: make /usr/bin/env find bash in paths
This is needed on FreeBSD and other systems where bash isn't located in /bin/bash.
2021-11-07 14:06:22 -08:00

15 lines
310 B
Bash
Executable file

#!/usr/bin/env bash
input_file=$1
read -r line < "$input_file"
echo "$line"
while IFS= read -r line || [[ -n "$line" ]]
do
read -n 2 -r elem
if [ ! -z "$elem" ]; then
printf "%2s\t " $elem
for i in {1..8}; do
read -n 12 -r x ; printf "%9.4f" $x
done
printf "\n"
fi
done < "$input_file"