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
Name: Nanda Date: September 16, 2003 at 02:43:39 Pacific OS: Win 2k CPU/Ram: P IV & 64kb
Comment:
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" ${file} >> temp #PROBLEM part: set pnum=cat temp | tail -1 temp #temp file holds filename &Process number. pnum has to take process number from temp(ex:pnum=16244) echo " ${pnum} " #displays pnum value main script set -v ndmcli ;#here pnum value is not assigned. WHAT TO DO? EOJ else exit fi done
help me does it require any ascii,binary,octal,hexa conversion. why is it not assigned.when i give user input value ,scripts executes(i.e pnum=16256) OR have i used any wrong command in the variable assigning part
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 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=...
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...