title: Write a Bash script that can print if the number in the last column is odd or even?
body: <p>I wanna Write a Bash script that can print if the number in the last column is odd or even or if no numbers in the line from a text file, the data is looking like this in a db.txt file :</p>
  <pre><code>sdn sddjk@gmail 123
  ksd 234
  sddd sddsd@gmail 
  </code></pre>
  <p>i tried this :</p>
  <pre><code>#!/bin/bash
  input=&quot;db.txt&quot;
  while IFS=&quot; &quot; read -r rec_column3
  do
  if [ $((number % 2)) -eq 0 ]; then 
      echo even
  elif [ $((number % 2)) -eq 1 ]; then 
      echo odd
  elif [[ &quot;$rec_column3&quot; != &quot;number&quot; ]]; then
      echo not number
  else 
      echo not found 
  fi     
  done
  </code></pre>
  <p>output is :</p>
  <pre><code>even
  even
  </code></pre>
  <p>so can anyone helps me ? tnx</p>