vadviktor
5/17/2017 - 7:55 PM

relativ humidity

relativ humidity

if [ ! -e "data.txt" ]
then
  echo "No data.txt found."
  exit 1
fi

while read line
do
  id=`echo $line | awk '{print $2}'`
  read line2
  echo $line > "${id}.txt"
  echo $line2 >> "${id}.txt"
done < data.txt