home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!mips!darwin.sura.net!eng.ufl.edu!whale.stat.ufl.edu!zzang
- From: zzang@whale.stat.ufl.edu (Zhuo Zang)
- Newsgroups: comp.unix.questions
- Subject: sh question: Please Help!
- Message-ID: <1992Jul23.220337.12886@eng.ufl.edu>
- Date: 23 Jul 92 22:03:37 GMT
- References: <AJG.92Jul22114544@sp1.ccd.harris.com> <1992Jul23.144652.1785@b11.b11.ingr.com> <1992Jul23.212852.28935@cs.cornell.edu>
- Sender: news@eng.ufl.edu (Usenet Diskhog System)
- Organization: College of LAS, UFL
- Lines: 31
-
- Helllo,
- I try to print out the usage
- in serveral places in a !/bin/sh script.
- If I use all the echo statement
- wherever I need, the file will be
- very long. Is it possible to define
- a var usage for this purpose, and
- when I need print out the usage,
- I may simply use:
- ${usage}
-
- If you have only one line, you may use
- usage="echo Usage"
- However, if you have two line, I dont know how.
- say , you need put two line statements:
-
- echo Usage:
- echo Options:
-
- in a variable.
-
- I tried :
- usage="echo Usage:;echo Options:;"
- it doesnt work.
-
- Thanks in advance !
-
- --
- Zhuo ZANG
- Department of Statistics E-mail: zzang@stat.ufl.edu
- University of Florida
-