home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!enterpoop.mit.edu!ira.uka.de!math.fu-berlin.de!umn.edu!pebi
- From: pebi@aem.umn.edu (Peter A. Bidian)
- Subject: Re: colrm
- Message-ID: <pebi.728163599@zephyr.aem.umn.edu>
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: zephyr.aem.umn.edu
- Organization: University of Minnesota
- References: <pebi.728082884@zephyr.aem.umn.edu>
- Date: Wed, 27 Jan 1993 19:39:59 GMT
- Lines: 31
-
- pebi@aem.umn.edu (Peter A. Bidian) writes:
-
-
- >Hi!
-
- >I have a quick question. Maybe that hasn't to do with the IRIS itself
- >but it occurs on an Iris, so maybe someone can help.
-
- >On a Sun I have a command colrm, that allows me to delete the characters
- >up to a certain position. On the Iris this doesn't work. It says
- >'Command not found'. Do you know what an equivalent command would be?
-
- >The concrete example is:
-
- > set prompt="`hostname|colrm 3`> "
-
- >I want to have only the first two characters from the hostname as a prompt.
-
- >Thanks,
-
- Thanks to all who answered. The cut command indeed does the job.
-
- Peter
-
-
- >
- >==========================================================================
- >Peter Bidian Internet: pebi@aem.umn.edu
- >Dept. of Aerospace Eng. Bitnet: AE02022@UMNACVX
- >University of Minnesota phone: (612) 625-1346
- >==========================================================================
-