🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.archives
Article #289

[comp.windows.x] Announcing xp, xpick and xzap

#289
From: G.M.Tomlinson
Date: Fri, 17 Apr 1992 10:48
61 lines
2530 bytes
Archive-name: auto/comp.windows.x/Announcing-xp-xpick-and-xzap


I have written three small Athena Widget applications based on programs
described in "The Unix Programming Environment" by Kernighan and Pike,
and called them xp,xpick and xzap.

They are available for anonymous ftp on export.lcs.mit.edu
in contrib as xp-1.1.tar.Z, xpick-1.0.tar.Z and  xzap-1.0.tar.Z.


XP
xp uses a readonly Text widget to display its standard input, or files
given as arguments, in a single top level window.

Some of its features are:

geometry in lines and columns,
egrep-style regular expression searches (via Henry Spencer's regexp package),
optional case insensitive and multi-file searching,
optional line wrapping and horizontal scroll bar,
split window facility providing 2 views of the same or different files,
shell command escapes, optionally passing on the current file as stdin.


XPICK
xpick displays its arguments (or standard input) in a MultiList widget
(from the Free Widget Foundation widget set), lets you select any of
them with the mouse, then outputs the chosen ones on standard output
when a command button is hit.

an example use is:

rm `xpick *`

or

rm `ls -ld *  | xpick -1 - | awk '{print $8}'`


XZAP
xzap runs "ps" and displays its output in a MultiList widget.  You can
then select  one or more processes  before sending them a KILL signal
by hitting a command button.  xzap makes no assumptions about ps other
than  that it displays process ids in a column headed PID.


Developed on a Sun-4, SunOS 4.1.1 X11R4 & X11R5
these programs have successfully been built & run on

  Sun-3 SunOS 4.1.1  X11R4
  Encore Multimax Umax 4.3 X11R4 & X11R5
  DEC MicroVax Ultrix V2.2 X11R5
  Acorn R260 RiSCIX 1.21 X11R4


	Gerry.

Gerry.Tomlinson@newcastle.ac.uk
Computing Laboratory, The University, Newcastle upon Tyne, UK, NE1 7RU
Tel: +44 091 222 8139
Technical Details
Message-ID: <smadpINNdsj@agate.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!spool.mu.edu!agate!newcastle.ac.UK!Gerry.Tomlinson
References: <9204141749.AA20178@expo.lcs.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!spool.mu.edu!agate!newcastle.ac.UK!Gerry.Tomlinson
From: Gerry.Tomlinson@newcastle.ac.UK (G.M.Tomlinson)
Newsgroups: comp.archives
Subject: [comp.windows.x] Announcing xp, xpick and xzap
Message-ID: <smadpINNdsj@agate.berkeley.edu>
Date: 17 Apr 92 10:48:25 GMT
Article-I.D.: agate.smadpINNdsj
References: <9204141749.AA20178@expo.lcs.mit.edu>
Followup-To: comp.windows.x
Organization: The Internet
Lines: 61
Approved: adam@soda.berkeley.edu
NNTP-Posting-Host: soda.berkeley.edu
X-Original-Newsgroups: comp.windows.x
X-Original-Date: Tue, 14 Apr 1992 17:49:00 GMT