Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Adding and Subtracting Variables
Name: Big_Z Date: May 19, 2004 at 10:40:39 Pacific OS: AIX 5.1 CPU/Ram: 1
Comment:
Hello,
I have a script in which I need to subtract the value of one variable from another.
Summary: I'm attempting to insert the current date into a string of variable text. Here is my example and result begin="this is a test" datevar='date +%Y-%m-%d' end="this is the end" rest=$begin$datevar$end ...
Summary: I don't quite know what you mean when you say you need to validate the statement... I guess you can just run it and read the return value of the call (not the output of the statement). Anyway you can ...
Summary: Hi, I have a file with 3 lines as follow.Ex: Trading amt=10 Pending amt=3 Available amt=4 I want to subtract the total of pending and available amts from trading amt and display all 4 rows (4th r...