Search Results

Search: Posts Made By: josephwong
11,112
Posted By josephwong
How to check a string in the variable
hi,

I have a variable var1 as follows in the script.

var1="one two three desformat=PDF xyz"
I would like to check whether $var1 has a string "desformat=PDF" or not.

Is there any command I...
3,604
Posted By josephwong
:) Thanks. It works.
:) Thanks. It works.
3,604
Posted By josephwong
korn shell, It seems it does not work. ...
korn shell,

It seems it does not work.

Any suggestions? Thanks.
3,604
Posted By josephwong
How to replace a variable content
Hi,

variable1="This is a car"

Now I want to replace the content of variable1, "car" to "dog". Is there any simple command I can use.

Thanks.

Joseph
Showing results 1 to 4 of 4

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