Results 1 to 2 of 2
Hi
I have to migrate the code from unix to linux.
In unix for variable attribute assignment there is a command "typeset",which has option like -L,-R,-u.
now i have to ...
- 09-05-2007 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 1
Variable Attribute Assignment Format
Hi
I have to migrate the code from unix to linux.
In unix for variable attribute assignment there is a command "typeset",which has option like -L,-R,-u.
now i have to implement the same functionality of typeset in the linux.
is there any command to set variable attribute in the linux?
Please help me.
E.g
$ typeset -R5 MY_VAR1
$ BORDER="|"
$ MY_VAR1="owl"
$ print "${BORDER}${MY_VAR1}${BORDER}"
| owl|
$
can i do same thing in linux using command?
- 09-05-2007 #2
Since this is shell code, as long as you are using the same shell, code should be pretty portable.
In this case, a reference for Bash's "typeset" command is available at:
http://www.tldp.org/LDP/abs/html/declareref.htmlDISTRO=Arch
Registered Linux User #388732


Reply With Quote