home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / 19154 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.4 KB  |  44 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!enterpoop.mit.edu!ira.uka.de!math.fu-berlin.de!umn.edu!pebi
  3. From: pebi@aem.umn.edu (Peter A. Bidian)
  4. Subject: Re: colrm
  5. Message-ID: <pebi.728163599@zephyr.aem.umn.edu>
  6. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  7. Nntp-Posting-Host: zephyr.aem.umn.edu
  8. Organization: University of Minnesota
  9. References: <pebi.728082884@zephyr.aem.umn.edu>
  10. Date: Wed, 27 Jan 1993 19:39:59 GMT
  11. Lines: 31
  12.  
  13. pebi@aem.umn.edu (Peter A. Bidian) writes:
  14.  
  15.  
  16. >Hi!
  17.  
  18. >I have a quick question. Maybe that hasn't to do with the IRIS itself
  19. >but it occurs on an Iris, so maybe someone can help. 
  20.  
  21. >On a Sun I have a command colrm, that allows me to delete the characters
  22. >up to a certain position. On the Iris this doesn't work. It says
  23. >'Command not found'. Do you know what an equivalent command would be?
  24.  
  25. >The concrete example is:
  26.  
  27. >    set prompt="`hostname|colrm 3`> "
  28.  
  29. >I want to have only the first two characters from the hostname as a prompt.
  30.  
  31. >Thanks,
  32.  
  33. Thanks to all who answered. The cut command indeed does the job.
  34.  
  35. Peter
  36.  
  37.  
  38. >                                                                       
  39. >==========================================================================
  40. >Peter Bidian                    Internet: pebi@aem.umn.edu
  41. >Dept. of Aerospace Eng.                Bitnet:    AE02022@UMNACVX
  42. >University of Minnesota                phone:      (612) 625-1346
  43. >==========================================================================
  44.