[svlug] How to print a tab with echo?

Erik Steffl steffl at bigfoot.com
Tue Jul 25 09:23:01 PDT 2000


  in addition to what others wrote:

  you can also use printf for more advanced formatting, not sure how
common it is but it's on linux (slackware, I think debian includes it
too, I guess other distros have it as well) and we have it here on
solaris (as part of solaris, not third party. it works just like printf
in C.

	erik

Dai Yuwen wrote:
> 
> Hi,
> 
> I want to print a tab in a echo statement, like this:
> 
> echo file    description >> list
>          ^^^^
>          here is a tab key
> 
> but echo just print one space between "file" and "description", no
> matter how many tabs between them. Any one can explain that?  Thanks in
> advance.
> 
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/mailman/listinfo/svlug




More information about the svlug mailing list