home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!dkuug!sbfdk!bmu
- From: bmu@sbfdk.sbf.dk (Boerge Mueller)
- Newsgroups: comp.unix.wizards
- Subject: ksh argument interpreter
- Keywords: ksh arguments
- Message-ID: <1992Nov11.083041.126@sbfdk.sbf.dk>
- Date: 11 Nov 92 08:30:41 GMT
- Organization: Great Belt ltd. Denmark
- Lines: 29
-
- Hi
-
- I'm not yet fully educated in UNIX, and have this problem:
-
- I wont to make a command which can handle binary files and ascii files
- in a seperate way in one task, I could imaging a syntax like this:
-
- $ command_name -u "user" -a [ascii file(s)] -b [binary file(s)]
-
- If I write :
-
- $ command_name -u elliot -a a* -b b* ; then ksh will interpret
-
- like:
-
- $ command_name -u elliot -a a1 a2 a3 a4 -b b1 b2 b3 b4
-
- then I need a shell script do deal which those multi argument, I imaging
- some kind of "case" syntax, but I cant find any solution but where
- "kludge" kind of programming. (please do not suggest awk or pearl, without
- a shell solution also, I'm not yet ready to do pearl or awk).
-
- Thanks in advance
-
- --
- From:
- Boerge Mueller (Project manager CAD & Technical information systems)
- Great Belt Ltd. |--------------------------------|
- Phone : +45 3393 5200 x 222 | I don't know what the |
-