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...
This works but may I know what is the significance of "r=0 and r at the end".
Is it a temporary variable ?
How is it called technically in UNIX term ?
Thanks again
Thanks for sharing valuable information. I greatly appreciate your help.
I have few more questions..
1. How to get results in two digit accurary (like 66.36 instead of just 66)
2. How to handle divide by zero. Is there any inbuilt function available for do I need to handle it?
PP...
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...
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...
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.