home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!NOBIVM.BITNET!SYS85001
- Organization: Norwegian School of Management (BI)
- Message-ID: <AIX-L%93012207110571@PUCC.PRINCETON.EDU>
- Newsgroups: bit.listserv.aix-l
- Date: Fri, 22 Jan 1993 12:51:14 CET
- Sender: IBM AIX Discussion List <AIX-L@PUCC.BITNET>
- From: Knut Winsnes <SYS85001@NOBIVM.BITNET>
- Subject: Q: csh and brackets in a script
- Lines: 26
-
- Hello, I have a question about csh and the tr command in a script:
- (I do not have brackets on my 3179 so I use :< and >: for left and right
- bracket in this mail)
-
- ------file xxx:
- #!/bin/csh -f
- ######
- set tolower="tr ':<A-Z>:' ':<a-z>:'"
- echo "abcABC" ║ $tolower
- ------
- when I do
- csh -x xxx
- I get:
-
- set tolower=tr ':<A-Z>:' ':<a-z>:'
- echo abcABC
- No match.
-
- So the question is; how do I write the program (xxx) so that it
- "delivers" the brackets and their contents to the tr command,
- and not makes a list (of files) from it?
-
- Thanks for your time.
-
- Regards
- Knut W
-