spacepaste

  1.  
  2. alexander@goblin /tmp $ cat ShowMesh.unv
  3. 2419
  4. 2420
  5. 2421
  6. alexander@goblin /tmp $ cat test.sh
  7. temp='2420'
  8. while read LINE
  9. do
  10. if [[ $LINE = $temp ]];
  11. then
  12. echo "True"
  13. else
  14. echo "False"
  15. fi
  16. done < ShowMesh.unv
  17. alexander@goblin /tmp $ sh test.sh
  18. False
  19. True
  20. False
  21.