home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3782 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.2 KB  |  40 lines

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