Search Results

Search: Posts Made By: sreedivia
97,428
Posted By sreedivia
Thanks for your reply. How can i assign a value...
Thanks for your reply.
How can i assign a value to this variable
${variable}_${i}="somestring" is it work?
97,428
Posted By sreedivia
How to concatenate a string and a variable
I need a way to build variable in this manner:

variable_$i
Inside a for loop i need to create it.
where i goes from 1 to 30..
and then i need to print them on screen with echo $variable_$i...
Forum: Solaris 10-24-2008
2,622
Posted By sreedivia
Thanks a lot. it is working now
Thanks a lot. it is working now
Forum: Solaris 10-23-2008
2,622
Posted By sreedivia
Error in String comparison
Hi,
I am getting an error while executing the below code.
The error is " [: too many arguments "
string1="material layout"
string2="material layout"

if [ $string1 == $string2 ]
then
...
59,096
Posted By sreedivia
How to remove new line char from a string
Hi
Can anyone tell me how can i remove new line character from a string.
My requirement is to read a line from a file and store it to a string.
read line
string1=$line
read line
string2=$line...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 11:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy