I need to select a range of files in an If statement.
The current code does this:
for x in `cat $HOME2/tmp/SFA_rpt7.ctl`
do
if [ -s $x]
then
I want to only select files in a range like so:
if ( $x >= A600.prn and $x <= A699.prn )
or ( $x >= A720.prn and $x <= A720.prn)
then
I also need to do the reverse logic like this by
selecting files that are NOT in these ranges.
The current code does this:
for x in `cat $HOME2/tmp/SFA_rpt7.ctl`
do
if [ -s $x]
then
I want to only select files in a range like so:
if ( $x >= A600.prn and $x <= A699.prn )
or ( $x >= A720.prn and $x <= A720.prn)
then
I also need to do the reverse logic like this by
selecting files that are NOT in these ranges.