Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
assign two commands to a variable.
Name: Najib (by Nael_Najib) Date: August 25, 2007 at 23:04:08 Pacific OS: Solaris CPU/Ram: Sun Sparc /8Gb RAM Product: Sun
Comment:
Hello,
I have a problem assigning two commands into one variable. i did the following
CHK=`cat `cat $HOM/temp.log`` $CHK
and i did:
CHK="cat `cat $HOM/temp.log`" ${CHK}
but it is not working.. do you have any idea how to make it work.
Summary: Is it possible to use a shell script to login to a database (using Teradata), run a query and assign the query result to a local variable defined in the shell? I know it's possible to run teradata SQL...
Summary: I need to calculate the Yesterday's date and received a good code from Unix forum. I need to assign the yesterdays Date (MONTH and DATE eg. 1229 for Dec 29)to a Variable ,say myvar. $myvar can be used...
Summary: Hi, i have grepped a process number from a file & redirected to temp file. from temp file, I should assign process number to a variable "pnum". to execute a script Select statistics pnumber= summary=...