Computing.Net > Forums > Unix > Search Results

Quick Links

Computing.Net Solution Center
Desktop Access to Search
Ask a New Question

Sponsored Results for: Assign to a Variable

Ads by Google


Show Within: One Month | One Year | Forever
Search Results for: Assign to a Variable

Product Search Results


Results 1 - 25 of 8153

[higher confidence] - higher confidence, [lower confidence] - lower confidence

Assign to a Variable
    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 D...

Prob Assign Row count to a variable
    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 t...

assigning a variable to a script
    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 ex...

Assign Date to a Var
    Summary: Dear All, My OS : Solaris and Shell is ksh. I have a requirement to assign date to a variable. I tried following and failed. myvar=date '+ %y%m%d_%h' ...

Assign File modify time to a Var
    Summary: Hi All, I need to do develop a script in ksh to do the following. Go to a particular directory (say /opt/alpha) List files (using ls -ralt) List the l...

dir path to a variable from file
    Summary: Hi, I have a file with a path to a directory. Can I do 'cat' of that file and assign it to the variable? Thanks and regards Suresh sureshht...

increase year, month,day in a loop
    Summary: Please give me some help on this shell script PLEASE. I'm very appreciate for your help. I need a script to run with two parameters: from-date (from-...

Reading a specific line from file
    Summary: To add to above, if you want to have output assigned to a variable then you can modify the line head -$linenumber $filename|tee temp.txt|tail -1 temp....

Extract the max no. in the File Ext
    Summary: Nish, If I am understanding you correctly, you just want the file extention for the last file in a directory assigned to a variable? In this case use ...

AWK Question
    Summary: Thank you for your response on my previous question on "Reformatting the month of year"! I have another question regarding passing a variable to awk ...

assign two commands to a variable.
    Summary: 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...

Assignment of Variable
    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 sh...

To read the value of a variable
    Summary: Even after removing if statement also my variable is not assigned inside the script Try to give solution: in order to assign the value of a variable ...

How to remove '$' from a $ variable
    Summary: I like to know how to remove '$' from a $ variable. I create a script, a.sh as below: #!/usr/bin/ksh a=`echo $1 | cut -d"\$" -f1` b=`echo $1 | cut -d"...

Assigning command line arguments to
    Summary: I am trying to assign a command line argument to a variable, i am running my script sending it one argument, i then set it to a variable by doing: VAR...

parsing a variable to a function
    Summary: I was wondering if/how you can parse a variable to a function within a unix script (BASH). What I'm trying to do is print lines from my script to a fi...

trying to build a variable name
    Summary: Is there a way in the Bourne shell to build a variable name? I'm trying to do something like this: arg1="this is a message" i=1 foo=arg${i} echo foo #...

How to set a variable
    Summary: How can we put this value to a shell variable (in C Shell)? {print "I'm OK"} I've tried: set mystr="{print \"I'm OK\"}" set mystr='{print "I\'m OK"}' ...

how to pass a variable from unix
    Summary: how to pass a variable from unix environment to oracle procedure ? ex: actual_file_name=`head -1 $IMINT_OWBHOME/temp|tail -1` $ORA_BIN_HOME/sqlplus $I...

Declaring a variable
    Summary: how to declare a variable globally in sql server.. ...

awk/nawk field assignment scripting
    Summary: I have a file with the following sample format. "USEXPRR abc def" "USEXPDD ghi jkl" I am pattern matching the first field to assign the value of the f...

Replacing a pattern with a variable
    Summary: I need to replace anything immediately after the pattern "standard01/" in a file with the value of a variable I don't know the length of the characte...

Extracting numbers from a string
    Summary: I am trying to extract a sequence of numbers from a character string which is input by the user. I want to be able to remove all the alpha characters...

ksh - variable of a variable name?
    Summary: is there a way to do this in Korn Shell? given: joe_email="joe.smith@whatever.net" but I don't know the user without a variable: user="joe" ... how ca...

Unix shell script for opening a file and
    Summary: Hi, Can anyone tell me how to write a Unix ksh script to open a file (path provided) and assign a value to a variable in the file and then save the fi...

Jump To: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | >>

Sponsored Results for: Assign to a Variable

Ads by Google