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.
assigning a variable to a script
Name: Anusha.R Date: September 16, 2003 at 00:27:08 Pacific OS: Win 2k CPU/Ram: P IV & 64kb
Comment:
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=no; I am unable to assign the variable to the script. #!/bin/ksh
set pnum=cat temp | tail -1 temp echo "$pnum " #variable pnum value is displayed(ex 16244)
select statistics pnumber= summary=no; # here i am unable to assign the variable value
I need your comments & Kindly tell me the mistake Does it require a conversion - string to a number
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: Hi, I'm pretty new to korn shell scripting and I would like to know how to assign a variable to the results of an awk function. I am writing a korn shell script but I'm using an awk function in my scr...
Summary: Hi, i have a major problem in assigning the variable in the following script: #!/bin/ksh for file in send*.log do if [ -f ${file}] then grep "filename" ${file} >> temp grep "process number...