home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!wupost!csus.edu!netcom.com!dman
- From: dman@netcom.com (Dallman Ross)
- Subject: Re: wanted: tutorial about sh programming
- Message-ID: <1992Dec29.093200.7731@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- X-Newsreader: TIN [version 1.1 PL8]
- References: <1992Dec28.224149.12534@raid.dell.com>
- Date: Tue, 29 Dec 1992 09:32:00 GMT
- Lines: 18
-
- In article <1992Dec23.191853.24899@nosc.mil>, mcdono@nosc.mil (Tim McDonough CSC Room 191 Phone 553 3102 ) writes:
-
- : I'd like the following line to produce the output below it.
- :
- : |> Hostname is foo Host id is 78454
- : |> Hostname is fooobar Host id is 89000
-
- Simple solution in sh:
-
- $ echo "hostname is `hostname`; hostid is `hostid`"
- hostname is netcom2; hostid is 72605053
-
- --
- __D_a l_l m a_n _ R o_s s _ |dman@netcom.com /or/ |"You sound like a man|
- l \\ l\\ /l /\\ l\\ l |dross@well.sf.ca.us |with a rubber nose." |
- l >)l \\ /ll / \\ l \\ l |vox/fax: 1.510.645.1883| -- One-Lung Bill |
- l // l \X ll/--- \\l \\ l |350 Perkins St., #108 | Remmer (deceased)
- _l//______________________\\l_|Oakland,_CA__94610-3422|_____________________|_
-