HDTenEightyP/NetNews huggingface dataset:
From: phd85@keele.ac.uk (D.H. Holden)
Newsgroups: comp.unix.questions
Subject: sed/awk guru's help wanted.
Keywords: sed/awk
Date: 11 Jan 93 15:25:32 GMT
Organization: Keele University, England


     Hi,
	  I'd like to be able to use grep to search several files for the
	  occurence of a string, and then to edit those files that have
	  this string in them.

	   i.e,

	   grep -i poly *.f *.c

	   this gives a list like,

	   polynom.f:  text.....
	   fred.f:     text....
	   fred.f:     text....
	   fred.f:     text....
	   main.c:     text....
	   work.c:     text....
	   work.c:     text....
	   work.c:     text....

	     I would like to pipe this output to a script so that it gives
	     just the filenames on a vi command line i.e.,

	     vi polynom.f fred.f main.c work.c

	  can anyone help?

	  thanks a lot,
			    Dave.


--
                                                                     

phd85@uk.ac.keele.seq1
keele university.
From: st1y2@elroy.uh.edu (Gray, William W.)
Newsgroups: comp.unix.questions
Subject: Re: Menu Syatem
Date: 4 Jan 1993 04:02 CST
Organization: University of Houston
Distribution: world
NNTP-Posting-Host: elroy.uh.edu
News-Software: VAX/VMS VNEWS 1.41    

In article <34857@adm.brl.mil>, jbowyer%cis.vutbr.cs@csbrmu11.bitnet (Bowyer Jeff) writes...
>Would someone please recommend a good menuing system that runs under
>Unix?  Something along the lines of Automenu or PowerMenu for MS-DOS
>(the beauty of Unix is the command line, but .  .  .  all users are not
>created equal).
> 
>Thank you for your assistance.
> 
>Jeff
> 
Well, I prfers to use the shell, either SH or CSH...

d
gasp! I said CSH... I hope I'm safe here! :)

Z


>==========================================================================
> Jeff Bowyer                         EMail:
> Computing Center		     jbowyer%cis.vutbr.cs@csbrmu11.bitnet
> Technical University of Brno
> Udolni 19, 602 00 BRNO
> Czechoslovakia
>==========================================================================
Newsgroups: comp.unix.questions
From: ddking@dante.nmsu.edu (Dwight King)
Subject: Automatic Account Allocations
Organization: New Mexico State University
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 5 Jan 1993 16:03:30 GMT


I have a unique question. I have a program that is written in C. This
program is used by the Computer Center here on Campus to grant students
accounts on the systems that are available. The student simply logs on to
the machine that they wish to work on (UNIX, VAX, Mainframe) using the ID
of accounts. This is a captive account that asks them for their Social
Security Number and their birth date. Then with this information the
captive account verifies their enrollment as a student on a central
database. If they are enrolled then the captive account then creates them
an account on that system.

What I am interested in finding out is if there is a commercial product
that would do the same thing or something similar?

I thank you for the responses before hand.
Newsgroups: comp.unix.questions
From: mj7633@ireland.medtronic.com (Mark Jacoby)
Subject: Unix Pkzip?
Organization: Medtronic, Inc., Minneapolis, MN
Date: Fri, 8 Jan 1993 19:48:29 GMT


Is there a Pkzip utility available at an ftpable site that I can
run on Unix? I need to compress files pretty regularly for transfer
to MS-DOS systems.

I'll check back here but would prefer email replies
mj7633@medtronic.com.

thanx,

mark


-- 
mark jacoby

mj7633@medtronic.com		612-574-8548
From: jbowyer%cis.vutbr.cs@csbrmu11.bitnet (Bowyer Jeff)
Newsgroups: comp.unix.questions
Subject: Menu Syatem
Date: 4 Jan 93 06:12:28 GMT

Would someone please recommend a good menuing system that runs under
Unix?  Something along the lines of Automenu or PowerMenu for MS-DOS
(the beauty of Unix is the command line, but .  .  .  all users are not
created equal).

Thank you for your assistance.

Jeff

==========================================================================
 Jeff Bowyer                         EMail:
 Computing Center		     jbowyer%cis.vutbr.cs@csbrmu11.bitnet
 Technical University of Brno
 Udolni 19, 602 00 BRNO
 Czechoslovakia
==========================================================================
Newsgroups: comp.unix.questions
From: digennar@fcs280s.ncifcrf.gov (Frank S. DiGennaro)
Subject: O'Reilly Books...
Organization: Frederick Cancer Research and Development Center
Date: Fri, 8 Jan 1993 21:16:47 GMT

I remember someone showing me a while back some small paperback books (I think they were published
by O'Reilly) on various UNIX commands; i.e. one paperback devoted to the 'make' command, one devoted
to 'sed', one devoted to 'awk', etc. etc. These were great books, but where I live now, the bookstores
really suck ( nothing can compare to the Barnes and Noble bookstore in New York City ). Does anyone
have an address/e-mail address/phone number so I can order through the mail?

Thanks.



  __________________________________________________________________________________
 |                                                |                        	    |_
 | Frank Salvatore DiGennaro                      |     E-Mail adresses :           | |  	   
 | NMR Engineer                                   |                                 | | 	  
 | The National Cancer Institute                  |  digennar@ncifcrf.gov           | |  
 | P.O. Box B, Bldg 469, Rm. 157                  |                                 | |   
 | Frederick, Md. 21702                           |  digennar@fcs280s.ncifcrf.gov   | |   
 | (301) 846-1226 (Voice)                         |                                 | | 	   
 | (301) 846-1438 (Fax)                           |                                 | | 	   
 | (301) 694-2886 (Home)                          |                                 | | 	   
 |                                                |                                 | | 	   
 | "Imagination is more important than knowledge" |                                 | | 	   
 |                        Albert Einstein         |                                 | | 	   
 |__________________________________________________________________________________| |  
   |__________________________________________________________________________________|


Newsgroups: comp.unix.questions
From: szatezal@magnus.acs.ohio-state.edu (Shane M Zatezalo)
Subject: Script un-cron-able?
Organization: The Ohio State University
Date: Mon, 4 Jan 1993 19:52:33 GMT

Here's the story: I wrote this script for our NeXT's at work. (It is
supposed to report a list of how much space each user is using up via
their directories, and if its over a specified limit, mail a notice
to them.) IF I run it, it runs fine. If I cron it, its output is fine,
but sometimes its output is mailed to me 3-4 times when it should
only be once.
The weird thing is that this "mailing" problem is sporadic... sometimes
it works fine, sometimes it doesn't... and sometimes, even though it
is in the cron list (actually, crontab.local on our server) it seems
like the script is never run because we receive no mail at all.

BUT, it always works fine if I run it.

So why can't I cron it? Please take a look at it. Hopefully, since it
is very simple, it shouldn't need much more explanation than the above.

#!/bin/sh
#
# User Directory Size Reporter 
# By Shane M. Zatezalo 12/18/92
# Call TAP, a FutureNet BBS (614)297-7031 24/96/14.4/16.8/19.2 DSHST
# Script description at the end....
#
LIMIT=10000
USRDIR=/
USRDIR2=/Users
MAILTO="shane njh"
MAILED=" "
NOTICE="/usr/local/lib/email.notice"
TMP=/tmp/diskspace.$$
PMT=/tmp/ds.$$
rm -f $TMP $PMT
echo 'User Disk Space Report.' >> $TMP
echo ' ' >> $TMP
echo 'Part 1 - The /Users directory.' >> $TMP
echo '-------------------------------' >> $TMP
cd $USRDIR
ls -s Users >> $TMP
echo ' ' >> $TMP
echo 'Part 2 - Space/User - Megs - Limit='$LIMIT >> $TMP
echo '----------------------------------------' >> $TMP
echo ' ' >> $TMP
cd $USRDIR2
ls -l | ~shane/bin/cut -c45-69 >> $PMT
cat $PMT |
while read line
do
        name=`echo $line | awk '{print$1}'`
        if [ "$name" ]
        then
                MAILED=" "
                amount=`du -s "${name}" | awk '{print$1}'`
                if [ \( "$amount" -ge $LIMIT \) -a \( "$name" -ne "11000" \) ]
                then
                        mail -i -s 'Your diskspace' $name < $NOTICE
                        MAILED=" *** MAILED ***"
                fi
                echo "$name $amount $MAILED" >> $TMP
        fi
done
mail -i -s 'Hosers with huge user directories' $MAILTO < $TMP
rm -f $TMP $PMT
exit 0
#
# This script is supposed to make a report of the user's directory
#size, and if its above the set limit, mail that user a polite
#warning and suggestions on how to lower their disk space consumption.
#
# 3 things to note:
# ls -l ; shane/bin/cut is the "normal" cut, not "cut" normally on NeXT's
# we have a dir. called "11000", and we did not want that included in output
# This /also/ does include the /Users directory, so you can see that
# (which would be "report #1)


Any help is appreciated. Thanks!

::::::::Apple II forever!!:::::::GO BUCKS!::::::::Play Lacrosse!!::::::::::
:   Shane M. Zatezalo         : i-net> szatezal@magnus.acs.ohio-state.edu :
:   CIS Eng Ohio State        : NeXTMail>  shane@kiwi.swhs.ohio-state.edu :
:GS::: call T.A.P. a Futurenet BBS 614-297-7031 16.8k DS HST 425 MEGS ::GS:

Newsgroups: comp.unix.questions
From: patrick@casbs.Stanford.EDU (Patrick Goebel)
Subject: Online help programs?
Organization: Center for Advanced Study in the Behavioral Sciences
Distribution: comp
Date: Thu, 7 Jan 1993 23:12:40 GMT

I have been spending considerable time writing an online help facility
to supplement the UNIX man pages.  The idea is to present to the user
a menu driven help tree that can be navigated to find easy-to-read
answers to common questions.

As much as I have enjoyed the challenge so far (;->), it dawned on me
that I may be reinventing the wheel. Does anyone know of an existing
menu-driven online help tool that allows the administrator to add and
edit help files at will?

Cheers,
patrick
--
Patrick Goebel                    E-MAIL: patrick@casbs.Stanford.EDU
Network Administrator             VOICE:  (415) 321-2052
CASBS, 202 Junipero Serra Blvd.   FAX:    (415) 321-1192
Stanford, CA 94305                BEEPER: Temporarily Out of Order...
From: chet@odin.ins.cwru.edu (Chet Ramey)
Newsgroups: comp.unix.questions
Subject: Re: How do you increase the wordsize in csh?
Date: 5 Jan 1993 15:05:19 GMT
Organization: Case Western Reserve University, Cleveland OH (USA)
NNTP-Posting-Host: odin.ins.cwru.edu

In article <1992Dec29.212152.19032@cs.sandia.gov> jhgreen@cs.sandia.gov (Jethro H. Greene) writes:
>In ksh/bash/sh, there is no limit to the size of a variable.  For example,
>a=`cat /etc/passwd` is ok.  However, csh gives the error, "Too many words from
>``".  Can this be fixed?

This is not word size, but the size of an argument list. 
This particular limit cannot be altered without hacking the
csh source.  It's a manifest constant defined in sh.h
(GAVSIZ). 

Chet

-- 
``The use of history as therapy means the corruption of history as history.''
	-- Arthur Schlesinger

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu
Newsgroups: comp.unix.questions
From: ktf@bc3.GUN.de (Klaus ter Fehn)
Subject: Re: Funny mail !
Organization: private
Date: Fri, 8 Jan 1993 01:20:06 GMT

In article <1idklpINNl27@msuinfo.cl.msu.edu> sitarama@cps.msu.edu (Kocherlakota Sitarama) writes:


>Hello,

>I went to /usr/spool/mail and created a file with one of my 
>friends names (user-id).

>The owner ship of the file is mine tho. 

>	o When I had my friend logged in, it said "you have newmail"
>	  but no mail !
>    o When I mailed to my friend it bounced back.


>You can do this to your friends and have their mail bounce !

>Please mail me your comments, if any, as I am not an active reader !

>Also, if you have any other ways of making fun with your friends 
>mail me !

Well, try this in your Home-directory:

	echo > "-r *" 

	and then try to delete it with:

	rm -r *

>Swamy

>sitarama@cps.msu.edu
>Dept Of Computer Science
>MSU 
-- 
Klaus ter Fehn		<ktf@bc3.GUN.de>
Neanderstr. 4		{mcshh,smurf,unido}!easix!bc3!ktf
4000 Duesseldorf 1
FRG / Germany		Tel.: +49-211-676331
From: mjmorell@husc11.harvard.edu (Michael Morell)
Newsgroups: comp.unix.questions
Subject: TAR and MACINTOSH: HELP NEEDED
Date: 12 Jan 93 22:30:01 GMT
Article-I.D.: husc3.1993Jan12.173002.19250
Distribution: usa
Organization: Harvard University Science Center

Hi. I'm a new user. I'm sorry if this question is being posted to the
wrong newsgroup, but if any of you can answer it, I'd appreciate it:

I connect to ULTRIX via NCSA telnet for the Macintosh. I have been trying to
play chess via a Macintosh graphics interface rather than an ASCII interface
with people around the world on the Internet Chess Server. I got a file via
ftp called MacICS-0.0.tar which might compile into a graphics interface, but I
don't know what to do with it.
I tried using tar, but since my system doesn't have /dev/rmt0h I get an error.
Any ideas on how to compile this and how to get ULTRIX and my Mac to communicate????

Thanks very much,
Mike
mjmorell@husc.harvard.edu
Newsgroups: comp.unix.questions,comp.sys.hp
From: tjg01@thdhub.HomeDepot.COM (Terry J. Gardner)
Subject: supported version control systems
Organization: Home Depot USA, Inc.
Date: Thu, 7 Jan 1993 15:48:22 GMT
Distribution: comp


Could someone who has experience with a commercially supported
version control system (RCS, prop., whatever backend) please send
me mail. My org. is looking at doing version control, and I may want
to suggest a commercial alternative. We will not use CVS (above my
objections) because it's PD. Shame, but not my decision.

Thanks,

--
terry@HomeDepot.COM                      (404) 433-8211x5124 or (404) 941-8304
Home Depot, USA Corporate Office, Atlanta, GA
From: msp@msen.com (Jerry Foster)
Newsgroups: comp.unix.questions
Subject: Print Graphics files
Date: 11 Jan 1993 14:09:44 GMT
Organization: Msen, Inc. -- Ann Arbor, Michigan
NNTP-Posting-Host: garnet.msen.com
X-Newsreader: TIN [version 1.1 PL8]

We are looking for a command line utility that will print various graphics
files (gif, tiff, dwg, dxf, etc.).  Either commercial or public domain
will do.  We are running SCO Unix 3.2.4 with Hewlet Packard laserjets and
a deskjet color.   Does anyone know if such a utility exists?  

Thanks in advance,

Jerry Foster




--
  //  Jerry Lee "3P"
\x/   e-mail: jfos@msp.com
From: chris@triage.UUCP (Wheres my 650TT2 Ducati)
Newsgroups: comp.unix.questions
Subject: Could someone send me telebit Dialers entry?
Date: 4 Jan 93 15:31:39 GMT
Article-I.D.: triage.1993Jan4.153139.6537
Organization: Triage Corp

I'm running Dell's SVR4 UNIX and can't seem to get Dialers to
drive the Telebit Worldblazer.  I'm looking for examples from 
other sites that successfully use the Worldblazers.

Thanx,

Christopher Perez - chris@triage.rain.com
Newsgroups: comp.unix.questions
From: mike@highlite.uucp (Mike Wiik)
Subject: scandir() for SCO Unix SV3.2
Organization: Gotham Communications Research
Distribution: comp
Date: Wed, 6 Jan 1993 14:01:44 GMT

Anybody got or know where I can find a version of the handy BSD
function scandir() for SCO Unix SV3.2? Please email. Thanks!!!

	-Mike

-- 
   | o==== . : ... :  :  .     |Mail Me Neat Stuff->POB 3703 Arlington VA 22203
 --@-- . o o o ... O -O- o o : |No disclaimers needed: I actually pay for this.
   |           ... :  :        |-----------------------------------------------
mEssAGE fRoM sPAcE ARt stUdiOs |            mike@highlite.gotham.com
Newsgroups: comp.unix.questions
From: pgreen@zia.aoc.nrao.edu (Philip Green)
Subject: Printer accounting
Organization: National Radio Astronomy Observatory, Socorro NM
Date: Tue, 5 Jan 93 22:21:08 GMT

How do I get printer accounting data?
If the printer is remote will lpd still record the 
accounting info? 

All our clients send their printer output to the file
server which then sends it to a remote printer. The 
remote printer has no accounting capabilities so I
was hoping to use the file server to do accounting.
I created the af entry in /etc/printcap and created
the file. pac output indicates that accounting is
turned on but nothing is there. Is there something
else I need to do?

Thanks
-- 
Phil Green                           	pgreen@aoc.nrao.edu
NRAO					505.835.7294
Newsgroups: comp.unix.questions
From: mike@uunet!tellab5!odgate (Mike J. Kelly)
Subject: What is XPG/3
Organization: Odesta Corporation
Distribution: comp
Date: Tue, 5 Jan 1993 23:34:27 GMT

Can anyone briefly describe what XPG/3 is?  Is it simply a definition
of a portable C library for Unix?
Newsgroups: comp.unix.questions
From: zeng@ecf.toronto.edu (ZENG Roger Wei Gang)
Subject: <<< PAINT BRUSH SOURCE, PLEASE !!! >>>
Organization: University of Toronto, Engineering Computing Facility
Date: Wed, 6 Jan 1993 21:33:05 GMT

Hi all ...

We're doing a project in a design course here, and we are in DESPERATE need
of the source code of Paint Brush (preferablly for Windows) or any other
painting applications. It doesn't have to be a complicated programme, just
something that can give a idea of how to engineer this kind of software. 

Any help or hints will be much appreciated!!!

Thanx in advance.
-- 
	N E W   Y E A R 		Roger Zeng
      G R E E T I N G S !		Engeering Science 9T5
					University of Toronto
					e-mail: zeng@ecf.toronto.edu
From: rouben@math9.math.umbc.edu (Rouben Rostamian)
Newsgroups: comp.unix.questions
Subject: Re: File manipulation question
Date: 7 Jan 93 03:56:39 GMT
Organization: University of Maryland Baltimore Campus
NNTP-Posting-Host: math9.math.umbc.edu

In article <1993Jan7.010450.28001@crpmks.uucp> marcs@crpmks.uucp (Marc Snyder) writes:
>	I have a quick question for everyone.  I have some files that are
>in the format:
>
>AA1  01234 ....
>    junk     junk   junk
>        junk                    junk
>C1K  98765 ....
>                   junk          junk
>COM  12121 ....
> junk

[ and you like to keep the non-junk lines.]

Use sed, as in:

sed -n '/^[A-Z][A-Z][0-9]  [0-9][0-9][0-9][0-9][0-9]/p' infile > outfile

If the alphabetic characters are in mixed upper/lower case, replace
each [A-Z] wiht [A-Za-z].

--
Rouben Rostamian
From: thomson@zarda.macc.wisc.edu (Don Thomson)
Newsgroups: comp.unix.questions
Subject: Timeouts for remote commands
Date: 9 Jan 93 17:35:26 GMT
Organization: University of Wisconsin Academic Computing Center

I'm having a problem with an Ultrix system whose system load is going through
the roof on occasion, preventing logins or rsh's, but not actually crashing.
I'm working on tracking down the source of the problem, and want to have
another UNIX box catch this condition when it happens by running a cron job
that periodically checks on its health.  The question is what tools to use to
test whether the machine has gone off the deep end.  A ping is low-level
enough that it is successful even when the machine has gone haywire.  A rsh
will time out if a machine is not running, but will just hang forever with
this machine when its having problems.  Is there a way to set a timeout period
for rsh so that I could use that in a script to check the other machine?  Are
there other suggestions for tools to use to just check and see if the machine
is responding?
--
 
----- Don Thomson ----- MACC, 1210 W. Dayton, Madison, WI  53706 -------------
    (608) 262-0138      thomson@macc.wisc.edu / thomson@wiscmacc.bitnet
Newsgroups: comp.unix.questions
From: adams@nisc.psi.net (Mark Adams)
Subject: UNIX SIG's or User groups in Seattle, WA area?        
Keywords: Seattle User Groups
Organization: Performance Systems International
Date: Wed, 6 Jan 1993 02:04:22 GMT

Hi,

I am wondering if anyone out there might have a contact
for any unix user groups in the greater Seattle area?

Any leads appreciated.

Thanks

Mark
adams@nisc.psi.net 


-- 
Mark Adams
adams@psi.com
From: yeasah@bigwpi.WPI.EDU (Yeasah G. Pell)
Newsgroups: comp.unix.questions
Subject: AT&T Unix PC
Date: 8 Jan 1993 23:56:03 GMT
Organization: Worcester Polytechnic Institute
NNTP-Posting-Host: bigwpi.wpi.edu

Hello, friendly unixers!

I recently inherited a (no bashing, please :) bona-fide AT&T Unix PC, but with
no accounts on it which I know the password to.  If anyone has:

	1) Any information about this box at all
	2) A boot disk from which I might be able to fix things
	3) Information specifically about the floppy format
	4) Any AT&T system 'bugs' present in this box that I might be
		able to use to get in to it.

I would be eternally grateful because this box has some nice looking features.
4MB memory, i-dont-know processor, 5 serial ports, 3 impressive looking phone
hookups, a tape drive, and a 60-80meg HD.  

	Anyway, thanks much in advance...

	-Yeasah Pell-  Yeasah@wpi.edu

Newsgroups: comp.unix.questions
From: rv@cs.brown.edu (rodrigo vanegas)
Subject: splitting large files
Organization: Dept. of Computer Science, Brown University
Distribution: comp
Date: Wed, 6 Jan 1993 21:48:59 GMT

Is there a standard way to split large files (binary or text) into
bitesize chunks that can be later reassembled automatically a la
shar/unshar?  Currently i am using "split" (uuencoding if binary)
which is both awkward and VERY manual.

So are there better tools for this?  or should i write my own?


rodrigo vanegas
rv@cs.brown.edu
Newsgroups: comp.unix.questions