home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!linac!uchinews!a-douglas@uchicago.edu
- From: a-douglas@uchicago.edu (Allen Douglas)
- Newsgroups: comp.unix.shell
- Subject: Re: echo question
- Message-ID: <1992Nov9.225645.15680@midway.uchicago.edu>
- Date: 9 Nov 92 22:56:45 GMT
- Article-I.D.: midway.1992Nov9.225645.15680
- References: <1992Nov9.171618.5675@midway.uchicago.edu>
- Sender: news@uchinews.uchicago.edu (News System)
- Organization: U of C Law School
- Lines: 28
-
- In article <1992Nov9.171618.5675@midway.uchicago.edu>,I write:
- >
- > I would like to echo tab and line return characters to the screen and/or
- > understandto a file. But I must not the escaping/quoting mechanism. According
- > to my UNIX reference I should be able to type:
- >
- > quads% echo Bob'\t\t'cat
- > and get:
- > Bob cat
- >
- > unfortunately I get:
- > quads% echo Bob'\t\t'cat
- > Bob\t\tcat
-
- Thanks for the e-mail. The shell I am using is sh, but the problem seems
- to be the fact that I am using Berkley unix instead of system V. Thanks to
- Bruce Barnett for this workaround:
-
-
- you are using the Berkley version of echo, which does not understand
- '\t'
-
- tr does.
-
- echo 'X' | tr 'X" '\t'
-
- also - put the tab in the shell script file...
- echo 'X X'
-