home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / wizards / 4607 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.2 KB

  1. Path: sparky!uunet!mcsun!sunic!dkuug!sbfdk!bmu
  2. From: bmu@sbfdk.sbf.dk (Boerge Mueller)
  3. Newsgroups: comp.unix.wizards
  4. Subject: ksh argument interpreter
  5. Keywords: ksh arguments
  6. Message-ID: <1992Nov11.083041.126@sbfdk.sbf.dk>
  7. Date: 11 Nov 92 08:30:41 GMT
  8. Organization: Great Belt ltd. Denmark
  9. Lines: 29
  10.  
  11. Hi
  12.  
  13. I'm not yet fully educated in UNIX, and have this problem:
  14.  
  15. I wont to make a command which can handle binary files and ascii files
  16. in a seperate way in one task, I could imaging a syntax like this:
  17.  
  18. $ command_name -u "user" -a [ascii file(s)] -b [binary file(s)]
  19.  
  20. If I write :
  21.  
  22. $ command_name -u elliot -a a* -b b*   ; then ksh will interpret
  23.  
  24. like:
  25.  
  26. $ command_name -u elliot -a a1 a2 a3 a4 -b b1 b2 b3 b4
  27.  
  28. then I need a shell script do deal which those multi argument, I imaging
  29. some kind of "case" syntax, but I cant find any solution but where
  30. "kludge" kind of programming. (please do not suggest awk or pearl, without
  31. a shell solution also, I'm not yet ready to do pearl or awk).
  32.  
  33. Thanks in advance
  34.  
  35. -- 
  36. From:
  37. Boerge Mueller  (Project manager CAD & Technical information systems)
  38. Great Belt Ltd.                    |--------------------------------|
  39. Phone  : +45 3393 5200 x 222       | I don't know what the          |
  40.