In Korn Shell you can use...
[tt]
typeset -L10 FIRST_TEN
FIRST_TEN=$(head -1 /dir/filename)
[/tt]
The [tt]typeset[/tt] command changes the way the variable works. The "L" left justifies whatever you assign to it. The "10" forces the length to 10, no matter what you assign to it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.