~vbursian/research-assistant/intervers

« back to all changes in this revision

Viewing changes to scripts/test_number

  • Committer: Viktor Bursian
  • Date: 2013-06-06 15:10:08 UTC
  • Revision ID: vbursian@gmail.com-20130606151008-6641eh62f0lgx8jt
Tags: version_0.3.0
versionĀ 0.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
xxx=4
 
3
yyy=$[$xxx+5]
 
4
echo $yyy
 
5
zzz=$(( 0$1 + 0 ))
 
6
if [ $? != 0 ]; then
 
7
  echo  arg is NOT a number
 
8
fi 
 
9
echo $zzz
 
10