home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!mcsun!sunic!ugle.unit.no!news
- From: Harald.Eikrem@delab.sintef.no
- Subject: Re: TCSH: completions for talk ?
- In-Reply-To: gaier@nova.tat.physik.uni-tuebingen.de's message of Tue, 1 Sep 1992 14:04:37 GMT
- Message-ID: <1992Sep2.222202*Harald.Eikrem@delab.sintef.no>
- Sender: news@ugle.unit.no (NetNews Administrator)
- Organization: SINTEF DELAB, Trondheim, Norway.
- References: <gaier.715356277@nova>
- Date: 2 Sep 92 22:22:02
- Lines: 27
-
- ! I want something like:
- !
- ! > talk @[TAB]
- ! ws1 ws2 ws3 ws4
- ! > talk @ws3
- ! > talk @ws3[TAB]
- ! user1 user2 user3 user4
- ! > talk user1@ws3
- !
- ! One problem is, that when i manage to get the workstations, i don't
- ! get the users. I use something like:
- !
- ! complete talk \
- ! c/@/\$hosts/ \
- ! c/@*/\`finger\ \$:1\ \|\ awk\ \'\{print\ \$1\ \}\'\ \|\ sort\ -u\ \`/ \
- ! p/1/\`finger\ \$:1\ \|\ awk\ \'\{print\ \$1\ \}\'\ \|\ sort\ -u\ \`/ \
- !
- ! any hints ?
-
- Hmmmmmm. That seems unworkable. However, if rwhod is running on the
- machines of interest to you, I have the following suggestion for a
- completion command:
-
- complete talk 'p?1?`rwho | sed "s/:.*//; s/ */@/" | uniq`?'
-
-
- ~~harald E.
-