home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5177 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.2 KB  |  30 lines

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