home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / bit / listserv / aixl / 2102 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1023 b   |  38 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!NOBIVM.BITNET!SYS85001
  3. Organization: Norwegian School of Management (BI)
  4. Message-ID: <AIX-L%93012207110571@PUCC.PRINCETON.EDU>
  5. Newsgroups: bit.listserv.aix-l
  6. Date:         Fri, 22 Jan 1993 12:51:14 CET
  7. Sender:       IBM AIX Discussion List <AIX-L@PUCC.BITNET>
  8. From:         Knut Winsnes <SYS85001@NOBIVM.BITNET>
  9. Subject:      Q: csh and brackets in a script
  10. Lines: 26
  11.  
  12. Hello, I have a question about csh and the tr command in a script:
  13. (I do not have brackets on my 3179 so I use :<  and >: for left and right
  14.  bracket in this mail)
  15.  
  16. ------file xxx:
  17. #!/bin/csh -f
  18. ######
  19. set tolower="tr ':<A-Z>:' ':<a-z>:'"
  20. echo "abcABC" ║ $tolower
  21. ------
  22. when I do
  23. csh -x xxx
  24. I get:
  25.  
  26. set tolower=tr ':<A-Z>:' ':<a-z>:'
  27. echo abcABC
  28. No match.
  29.  
  30. So the question is; how do I write the program (xxx) so that it
  31. "delivers" the brackets and their contents to the tr command,
  32. and not makes a list (of files) from it?
  33.  
  34. Thanks for your time.
  35.  
  36. Regards
  37. Knut W
  38.