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 bkrike 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. tekinfarmland

    DOS Batch-How CMD file use input from another files content

    I am on a windows 2003 server, trying to write a dos batch script. I have a file with a date in it "date.txt" content looks like "Thu Mar 29 12:27:36 2012" I have another file copy.cmd that has 5 input parms corresponding to the 5 date parts above %1 is for "day", %2 is for "month", %3 is for...
  2. tekinfarmland

    syntax error at line 2 : `if' unmatched

    I am using ksh on a SunOS machine. I cannot figure out why I am receiving this "if" error. SYTIME="10:30" if [ -n "$QETIME" ]; then JEND=$SYTIME fi echo QETIME:$QETIME echo JEND:$JEND
  3. tekinfarmland

    grep variable replacement error - can't open file

    this command works CSTIME=$(grep "PA3.1" Jobcheck.tbl | cut -f2 -d',') but when I replace the values with variables with same values CSTIME=$(grep $JNAME $TBL | cut -f2 -d',') I get "error can't open Jobcheck.tbl" Am I missing special characters in the 2nd grep command? Any help would be...

Part and Inventory Search

Back
Top