I wonder if it is a standard UNIX text-formatting command. I could not
find it on our UNIX system (AIX) by doing a man
Could someone tell me what the command above actually does, so I
can consider replacing with some similar commands.
--
\\\//
(o o)
[----------------ooO-(_)-Ooo---------------] PM Wong (Computer Officer)
[User User User User User User User User Us] CTSC Hong Kong Baptist College
[ser User User User User User User User Use] 224 Waterloo Road, Kln. HONGKONG
[er User User User User User User User User] Voice: (852)3397425 Fax: 3397888
[------------------------------------------] Email: p...@ctsc.hkbc.hk
: I wonder if it is a standard UNIX text-formatting command. I could not
: find it on our UNIX system (AIX) by doing a man
: Could someone tell me what the command above actually does, so I
: can consider replacing with some similar commands.
I'm not sure, but I think that's a shell built in command. Check the man
page for your shell, and grep it for typeset.
--
--Ami
Have YOU hugged YOUR smurf today?
That secret you've been guarding, isn't.
It is a Korn shell built-in command. It creates a variable called
"pusr" as a lowercase, left-justified string limited to 3 characters.
>[----------------ooO-(_)-Ooo---------------] PM Wong (Computer Officer)
>[------------------------------------------] Email: p...@ctsc.hkbc.hk
--
Frank "Crash" Edwards Edwards & Edwards Consulting
Voice: 813/786-3675 Unix/AIX & OS/2: Training, Programming, and SysAdmin
Data/Fax: 813/787-3675 cr...@azhrei.EEC.COM; inquiries to in...@azhrei.EEC.COM
|> \\\//
|> (o o)
|> [----------------ooO-(_)-Ooo---------------] PM Wong (Computer Officer)
|> [User User User User User User User User Us] CTSC Hong Kong Baptist College
|> [ser User User User User User User User Use] 224 Waterloo Road, Kln. HONGKONG
|> [er User User User User User User User User] Voice: (852)3397425 Fax: 3397888
|> [------------------------------------------] Email: p...@ctsc.hkbc.hk
|>
--
+---------------------------------------------------------------+
| Mike D. Kail AT&T: (612) 945-8044 |
| ProviderLink Developer FAX: (612) 945-8430 |
| United HealthCare Corp. E-Mail: mk...@uhc.com |
+---------------------------------------------------------------+
| "Nothing great was ever achieved without enthusiasm." |
| - Ralph Waldo Emerson |
+---------------------------------------------------------------+
>Recently I got a shell script from USENET. It contains a command as:
> typeset -lL3 pusr=$usr
>I wonder if it is a standard UNIX text-formatting command. I could not
>find it on our UNIX system (AIX) by doing a man
>Could someone tell me what the command above actually does, so I
>can consider replacing with some similar commands.
The command typeset is a command internal to the BASH shell (perhaps some
other shells, also). It is not a text formatting command, but rather sets
environment variables. In this case, the variable 'puser' will be set equal
to the contents of the variable 'usr', with the -lL3 being some sort of
modifier. I am not just how it will modify the variable, perhaps doing a man
on the shell that the program was written for will elaborate.
I hope that this has been of some help,
David Williams
--
.////. .// David M. Williams da...@cs.newcastle.edu.au
o:::::::::/// Department of Computer Science, University of Newcastle
>::::::::::\\\ " Amazing love! How could it be
'\\\\\' \\ that thou oh God shouldst die for me!"
> >Recently I got a shell script from USENET. It contains a command as:
> > typeset -lL3 pusr=$usr
> >Could someone tell me what the command above actually does, so I
> >can consider replacing with some similar commands.
> The command typeset is a command internal to the BASH shell (perhaps some
> other shells, also).
to the POSIX like SH. In this case it is ksh.
-l - all upper case characters converted to lower case
-L3 - left justify and remove leading blacks from value, 3 - field width
--
Seeking job: UNIX/MSDOS/WAN/LAN SysAdmin, SW engineer