Hey,

Try this:

-------------------cut here------------------------
#!/bin/sh

echo "hello\c"
echo "\t\c"
echo "there"
echo "\n"
-------------------cut here------------------------

The \t echoes a tab character; the \c supresses the newline that would
otherwise be added.

Hope that helps...

Deke

On Tue, 5 May 1998, Jason wrote:

> 
> I'm trying to write a shell script that will automatically let me modify
> the mail settings for sendmail.cf without having to go into the file and
> do it.
> 
> I need a way to force it to echo a "tab" command, but I can't seem to find
> a way to do that. I got one mention that I should try using a prinf
> statement to print the hexidecimal value of tab, but I don't know much C
> nor can I find the hexidecimal value of tab.
> 
> Can anyone tell me how I could do this, or perhaps an easier way of
> embedding the tab? Sendmail.cf requires tabs for the virtual domain
> mail forwarding. I can always export the mail forwarding config to
> another file and edit it that way, which I have on another server,
> but I'd prefer to keep it the way that it is.
> 
> Please help! :)
> 
> Thank you,
> 
> __jason
> 
> 
> 
> -- 
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
>          To unsubscribe: mail [EMAIL PROTECTED] with 
>                        "unsubscribe" as the Subject.
> 


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to