Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. roger55

    Using the If statement

    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
  2. roger55

    Using the IF statement

    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
  3. roger55

    Using the IF statement

    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 <=...

Part and Inventory Search

Back
Top