I tried this command but get a syntax error:
if [ ! \( -s $x -ge A600.prn -a -s $x -le A699.prn \) -a ! \( -s $x -ge A800.prn -a -s $x -le A899.prn \) ]
then
I want to select files that are NOT in these ranges:
A600.prn to A699.prn
A800.prn to A899.prn
I tried this command but get a syntax error:
if [ ! \( -s $x -ge A600.prn -a -s $x -le A699.prn \) -a ! \( -s $x -ge A800.prn -a -s $x -le A899.prn \) ]
then
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 <=...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.