To give context to my issue. I am trying to move a list of files, where if the resolution is greater than 3.00, then move to a directory, Above3.
#!/bin/bash
files=`ls *.ent`
Above3=/mnt/d/Documents/Research/PhD/PhD/Research/Results/PDB/New/XRD/Above3
for f in $files; do
resolution=`cat $f | grep "REMARK 2 RESOLUTION." | awk '{print $4}' | tr -d ' '`
if [ $resolution -gt 3.00 ] ; then
mv $f $Above3
fi
done
The error I am getting is "integer expression expected" which I am not sure how to fix. Any suggestions on a solution will be greatly appreciated.