On Thu, Jul 11, 2002 at 02:20:36PM +0530, webber wrote:
> Korn built-in typeset command can be used to specify variable 
> size and alignment e.g. typeset -L20 var would declare a left 
> aligned variable of size 20 chars.
[snipped]
---end quoted text---

Under bash, the declare or  typeset  keywords  (they are exact 
synonyms) permit restricting the properties of variables. This 
is a very weak form typing available, and the declare/ typeset
command is not available in version 1 of bash ... The switches
that I know of are: -r readonly, and -i for integer ... I have
not come across a -L equivalent. bash scripts  use  declare in
preference to typeset usually. 

[Adapted from advanced-bash-scripting-guide by Mendel Cooper]

HTH

Bish

--
:
####[ Linux One Stanza Tip (LOST) ]###########################
  
Sub : Lesser known commands (xargs)                  LOST #167

xargs is a filter for  feeding argumants  to a command. It can
break data stream into chunks for filters/ commands to process
[e.g. 'ls | xargs -p -l gzip'  gzips  all files in the current
directory sequentially after giving prompt at each file].

####<[EMAIL PROTECTED]>####################################
:



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to