Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"typeset -Ln" not working under Linux ... 2

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
DE
Hi everyone,

I'm used to using the

Code:
typeset -Ln

command under AIX to do the following:

Code:
"Left-justify. Remove leading spaces; if n is given, fill with spaces or truncate on right to length n."

Somehow under Linux this not working ...

Any ideas what I have to use here instead ?

Regards,
Thomas
 
It is the following:

GNU bash, version 3.1.17(1)-release (x86_64-suse-linux)

I'm using the typeset to format variables ...

e.G.

Code:
typeset -L3 variableA
 
Use ksh instead of bash ...

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Sometimes the solution is right in front of you ... ;-)
Thanks a lot !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top