Search This Blog

Saturday, March 8, 2014

bash script default input values

#!/bin/sh
dir1=$1
dir2=$2
: ${dir1:="TxtInOut-serial"}
: ${dir2:="TxtInOut-omp-02"}

No comments:

Labels