On Tue, May 05, 1998 at 02:43:16PM -0400, 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. 

In the shell you can echo a character by its decimal value. Check out
'man bash' and search for 'echo'. It tells you there how to do it. But
to echo your tab, try something like this:

        echo -e '|\t|'



>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.

Just to pick a nit, it's spelled "hexadecimal", not "hexidecimal".
                                     ^                  ^

To solve this problem, check out "man ascii".

Fred
-- 
---- Fred Smith -- [EMAIL PROTECTED] ----------------------------
  "And he will be called Wonderful Counselor, Mighty God, Everlasting Father,
  Prince of Peace. Of the increase of his government there will be no end. He 
 will reign on David's throne and over his kingdom, establishing and upholding
      it with justice and righteousness from that time on and forever."
------------------------------- Isaiah 9:7 (niv) ------------------------------


-- 
  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