Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!boulder!cdash From: cdash@boulder.Colorado.EDU (Charles Shub) Newsgroups: comp.unix.questions Subject: help with csh alias Message-ID: <8077@boulder.Colorado.EDU> Date: 11 Apr 89 19:22:04 GMT Sender: news@boulder.Colorado.EDU Reply-To: cdash@boulder.Colorado.EDU (Charles Shub) Organization: University of Colorado at Colorado Springs Lines: 13 i want an alias (4.3bsd on a microvax, c shell) that will strip a colon (:) out of the middle of an argument i.e. 4:15 becomes 415. That's easy to do with echo piped through sed. what is hard is that i want to use the result as an argument to expr(1) and capture the output of expr. I'm having trouble with escape sequences. The colon is, unfortunately, optional, or i could use the "s" modification of the c shell. Any words of wisdom: desired version mycommand `expr - 5` other args charlie shub cdash@boulder.Colorado.EDU -or- ..!{ncar|nbires}!boulder!cdash or even cdash@colospgs (BITNET)