Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!mephisto!emory!hubcap!ncrcae!sauron!wescott From: wescott@Columbia.NCR.COM (Mike Wescott) Newsgroups: comp.sys.ncr Subject: Re: Date Error on 4920 and 4940 Terminals Message-ID: <2071@sauron.Columbia.NCR.COM> Date: 20 Mar 90 22:00:09 GMT References: <193@fdls.UUCP> <195@fdls.UUCP> Sender: news@sauron.Columbia.NCR.COM Reply-To: wescott@micky.Columbia.NCR.COM (Mike Wescott) Distribution: comp.sys.ncr Organization: E&M-Columbia, NCR Corp, W Columbia, SC Lines: 19 In article <195@fdls.UUCP> dougw@fdls.UUCP (Doug Walker) writes: > set `date '+%d %m %y %M %H'` > echo "^[^A^M$1^N$2^O$319^U$4^V$5^_" > > The ^'s represent a CTRL v typed in vi. Control characters can be handled by echo in much the same way as in C: echo "\033\001\r$1\016$2\017$319\025$4\026$5\037" or even better, avoid the echo altogether: date "+^[^A^M%d^N%m^O%y19^U%M^V%H^_" -- -Mike Wescott mike.wescott@ncrcae.Columbia.NCR.COM