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 dencom 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: *

  • Users: SamDurai
  • Content: Threads
  • Order by date
  1. SamDurai

    Selective file deletion

    I have many files as below present in a directory. data.20091009_0915_app.out data.20091009_0915_db.out data.20091009_0915_dbm.out data.20091009_0915_lock.out data.20091009_0930_app.out data.20091009_0930_db.out data.20091009_0930_dbm.out data.20091009_0930_lock.out...
  2. SamDurai

    Korn Arithmetic Question

    Simple arithmetic works but bit complex arthimetic fails of possible syntax error. How should I handle this in shell script /tmp > /tmp > cat t.ksh a=3 b=5 c=`expr $a \* $b` echo c=$c var1=4 var2=5 var3=11 var4=15 result=`expr 100 - (( ( $var1 + $var2 ) \* 100 ) / ( $var3 + $var4))` /tmp >...
  3. SamDurai

    More nawk formatting quesion

    Application script named external_Pgm.ksh produces output as below when executed Current Timestamp = 2009-08-30-23.10.35.603275 No of orders = 10 Cost of new order = USD 10.00 If the same script is execute after 5 mins it produces result as below (Essentially it show the current timestamp...
  4. SamDurai

    Korn Shell / AWK Help

    I have a file input.txt with the following sample data. I am trying to pattern match and assign the value to a variable. The problem is that I the assigned values are not retained outside of the nawk loop. Is there away for me to retain the variable values within the nawk loop to process later...

Part and Inventory Search

Back
Top