HDTenEightyP/NetNews huggingface dataset:
From: sct@dcs.ed.ac.uk (Stephen Tweedie)
Newsgroups: comp.unix.questions,cs.questions
Subject: Re: RCS usage
Date: 15 Dec 92 16:00:56 GMT
Organization: University of Edinburgh Dept. of Computer Science, Scotland

In article <1992Dec10.095436.15672@ericsson.se>, etxmesa@eos.ericsson.se (Michael Salmon) writes:
> In article <Bz0K5r.5K5@dcs.ed.ac.uk>
> tk@dcs.ed.ac.uk (Tommy Kelly) writes:
> |> I've just started using RCS and I'd appreciate any input on the following:
> |> 
> |> Suppose I have five source files, A, B, C, D and E which make
> |> up an application.  As I develop the application, I want to keep track
> |> of which revisions of each file combine to create a particular version
> |> of my application.
> |> 
> |> At the moment I am ...
> |> Question:  Is there an easier way to do this, perhaps using RCS itself?

Check out cvs.  It is a front end for rcs which is designed to do for
groups of files what rcs does for individual files, and it can keep
track of and merge separate sets of updates to any of its known
versions.

cvs operates out of a single source repository, where all of the
central revision information is kept.  This means that more than one
copy of the source (the same or different revisions) can be checked
out (to different working directories) at any time, and changes to
any of these working files easily merged into the main repository.
Once a set of files has been committed to cvs, new files can be added
to the project as required.

The great beauty of cvs is that the single command "cvs commit",
issued from the working directory, will commit all alterations to
cvs-controlled files in that directory to the cvs database as a new
revision.  cvs automatically works out which files have been modified,
and ignores files which are not part of the repository (such as *.o
files, executables and backups).

One thing the documentation (in "man cvs") does not tell you is how to
create the repository in the first place.  You need to set up the
environment variable $CVSROOT to the place you want to keep the CVS
stuff (~/CVS or ~/.CVS, perhaps), and then cd to ~rcs/cvs-1.3 and
issue the command "./cvsinit" - all the necessary CVS files and
directories will be created under $CVSROOT.  (You should probably set
this variable in your .brc file if you will be using cvs frequently).

Cheers,
 Stephen Tweedie.
---
Stephen Tweedie <sct@uk.ac.ed.dcs>   (Internet: <sct@dcs.ed.ac.uk>)
Department of Computer Science, Edinburgh University, Scotland.
Newsgroups: comp.unix.questions
From: twpierce@unix.amherst.edu (Tim Pierce)
Subject: Re: REALLY STUPID QUESTIONS (not so stupid)
Organization: Elitist Usenet Administrators, Turkey Division
Date: Sun, 20 Dec 1992 05:12:39 GMT

In article <BzGtv1.M5u@cs.dal.ca> franklin@ug.cs.dal.ca (Steve Franklin) writes:

>Elm is functional, and non-nonsense. Great
>aliasing capabilities and such. besides, most adept users don't want a
>new editor - they want to use the one they know... 

Of course, if the one they know is TPU, then it's really nice at
*least* to have an editor that doesn't bomb out on you when you hit
Ctrl-Z.

Besides, if I remember Pine correctly, you can specify your own
editor.

-- 
____ Tim Pierce                / 
\  / twpierce@unix.amherst.edu /               Rocks say goodbye.
 \/ (BITnet: TWPIERCE@AMHERST) /
From: merlyn@ora.com (Randal L. Schwartz)
Newsgroups: comp.unix.questions
Subject: Re: How to chop up an archive.tar.Z file like in the X distributions?
Date: 16 Dec 92 19:30:55 GMT
Article-I.D.: romulus.MERLYN.92Dec16113051
Organization: Stonehenge Consulting Services; Portland, Oregon, USA

In article <1992Dec15.142232.1@cc.utah.edu> eyring@cc.utah.edu writes:
   How to chop up an archive.tar.Z file like in the X distributions?

I use my "binsplit" program, like so:

#!/usr/bin/perl

$size = 65536;
$size = shift if $ARGV[0] =~ /^-\d+$/;

for (@ARGV) {
	$part = 0;
	(warn "Cannot open $_: $!"), next
		unless open(STDIN, $_);
	# create output filename
	s#.*/##;
	tr#a-zA-Z0-9\-.##cd;
	$_ = "binsplit" unless length;
	$outname = $_;
	while (read(STDIN,$_,$size)) {
		open(STDOUT,sprintf(">$outname.p%03d", ++$part)) ||
			die "Cannot create $outname.pNNN: $!";
		print;
	}
	close(STDOUT); # force final flush
}


give it args of "-32768 archive.tar.Z" to turn archive.tar.Z into
archive.tar.Z.p001 through archive.tar.Z.p999 in 32k chunks.

Just another Perl hacker,
--
Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
merlyn@ora.com (semi-permanent) merlyn@reed.edu (for newsreading only)
factoid: "Portland, Oregon, home of the California Raisins and Lone-Star Beer!"
From: sjw@cs.umd.edu (Shuo-jen Wu)
Newsgroups: comp.unix.questions
Subject: Questions about Library
Date: 12 Dec 92 04:29:14 GMT
Distribution: usa
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742

I just downloaded a gif file viewer ource code) by ftp. I try to compile it
on my PC. I have some problems when I compile it. There are some varibles
undefined in libX11.so . I check the computer in my department,
There are libX11.a and libX11.so in lib directary. But in my PC, there is
only libX11.so. I guess there is some command which can convert .so to .a.
Am I right ? Is anything I can do to solve the problem ?

Shuo-jen

Newsgroups: comp.unix.questions,comp.unix.misc,comp.sys.hp
From: prs9k@brain.med.virginia.edu (Phil Scarr)
Subject: NetFax drivers?
Followup-To: poster
Organization: Neuroclinical Trials Center, University of Virginia
Date: Wed, 16 Dec 1992 18:48:48 GMT

In an effort to be cheap, we are investigating the functionality of
NetFax, the MIT freebie faxing system for unix.  However, the system
claims to require GhostScript compiled with the digifax drivers
dfaxhigh.dev and dfaxlow.dev.  My question to you is where can I find
these drivers???

	-Phil
-- 
PHIL SCARR        \      We are Microsoft...     /          (o) 804.243.0229
 University of    /     OS/2 is irrelevant.      \          (f) 804.243.0290
 Virginia,        \     UNIX is irrelevant.      /        prs9k@Virginia.EDU
 Neurosurgery     /     Openness is futile.      \     prs9k@Virginia.BITNET
 HP-UX is my life!\ Prepare to be assimilated... /   ...uunet!virginia!prs9k
From: net@cs.tu-berlin.de (Oliver Laumann)
Newsgroups: comp.unix.questions
Subject: Re: Integers in SH
Summary: Use expr(1)
Date: 14 Dec 92 10:15:33 GMT
Organization: Technical University of Berlin, Germany

dattier@ddsw1.mcs.com (DWT) writes:
> | does anyone of you out there know how I can make sure that I have read an
> | integer rather than a string?

> read a
> case "$a" in
> *[!0-9+-]*|?*[-+]*) echo not an integer ;; # [comment deleted]
> *) echo Now that\'s an integer. ;;
> esac

This is not portable; not all versions of /bin/sh (for instance, the
4.3 BSD shell) support the "!" operator in patterns.  As enumerating
the complement of [0-9] isn't feasible either, I suggest to solve the
problem by means of the "expr" command:

    #!/bin/sh
    echo -n "How many: "
    read a
    if [ `expr length $a = $a : "[0-9]*"` = 1 ]; then
	echo Thanks for this fine integer.
    else
	echo Nope, try again.
    fi

Note that this solution doesn't correctly handle an empty input; this
can be fixed easily.

--
Oliver Laumann    net@cs.tu-berlin.de  net@tub.UUCP  net@tub.BITNET
Newsgroups: comp.unix.questions
From: ns14@crux3.crux2.cit.cornell.edu (Nathan Otto Siemers)
Subject: Re: Really stupid questions
Organization: Department of Chemistry, Cornell Univ.
Date: 18 Dec 92 02:44:23

>>>>> On 18 Dec 1992 03:48:38 GMT, 2760carpente@vms.csd.mu.edu
 MET> (METALLICA) said: NNTP-Posting-Host: vmsa.csd.mu.edu

 MET> I have a few really stupid questions.  Feel free to laugh at me,
 MET> but I would really appericiate it if someone could take the time
 MET> to answer my question.  I spent 4 years working with VMS and
 MET> DOS/WIN3 but now I want learn about UNIX.  I have seen the
 MET> errors of my way....  1) I have a file .plan in my root dir.
 MET> How do I set it up to display everytime somebody fingers me.  2)
 MET> How do I set up my .sig file to append to all my messages?  What
 MET> mailer is better: elm or vanilla mail 3) Which shell is better?
 MET> I am currently using /bin/csh, but people keep telling me that I
 MET> should use the Bourne shell. /bin/sh 4) Is the faq for this
 MET> group at pit-manager.mit.edu?

	1. answered better than I could already
	2. Elm Elm Elm Elm  will do it all for you
	3. I do like tcsh for an interactive shell. nothing is more
efficient, especially if you are familiar with emacs cursor commands.
	4. yes
--
--
/  | / /__|  /  /---/ /__| /  | /    nathan@chemres.tn.cornell.edu
Newsgroups: comp.unix.questions,comp.unix.shell
From: dwj@sactoh0.sac.ca.us (Daniel W. James)
Subject: Redirection of the Echo command to other tty's
Keywords: unix echo shell 
Reply-To: ccpoabt!dan@sactoh0.SAC.CA.US (Daniel James)
Organization: CCPOA Benefit Trust Fund
Date: Mon, 14 Dec 92 22:25:53 GMT

Unlike my usual questions, this one is quick, and hopefully the answer will
be just as easy :)

Let's say I type the following shell command: (SysV)
----------------------------------------------------
$ echo "Line One\nLine Two"
I get the following output on *my* screen:
----------------------------------------------------
Line One
Line Two

However, if I type:
----------------------------------------------------
$ echotest.sh > /dev/console
I get the following output on the console:
----------------------------------------------------
Line One
        Line Two

I.E., during redirection, the \n changes from cr/lf to just lf

Do I need to use echo "Line One\n\rLine Two" during redirection???  Or is
there some easier way (independent of redirection) to make sure the both
the CR/LF sequence is output?

Also, I found some neat little files which are just a sequence of
characters/vt100 escape codes which when 'cat' display neat christmas
scenes.  However, if I redirect these, they also do not display correctly.
Is there any way besides first piping the output to a sed script to
translate the LF to a CR/LF sequence before redirecting the output?

Thanks in advance...
Dan.

-- 
_______________________________________________________________________________
Daniel W. James      In Cal: (800) 468-6486 |  ccpoabt!dan@sactoh0.SAC.CA.US
CCPOA Benefit Trust Fund     (916) 923-6080 | ...!pacbell!sactoh0!ccpoabt!dwj
3780 Rosin Court, Suite 250                 +----------------------------------
Newsgroups: comp.unix.questions
From: dman@netcom.com (Dallman Ross)
Subject: Re: Performing simple math on a numeric file from csh
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
X-Newsreader: TIN [version 1.1 PL7]
Date: Fri, 18 Dec 1992 12:09:21 GMT

Barbara Vaughan (bvaughan@sheps.Princeton.EDU) wrote:
: This is your third whining plea; it doesn't include the problem, which I
: vaguely remember. . . .
 
Oh, heaven forefend, I did not intend to whine. :-)  Thanks for your hints,
in any event.  Re. the problem, I thought it would beg the question to
re-post the problem one day later; I figured the bandwidth would be too
much, especially when folks could just type 0 (in my reader, anyway) to
get to the original article.  Frankly, before I proceeded, I thought
about what would offend me more: re-posting the problem, or just sup-
plementing it with new information.  After some deliberation, I decided
it would be much less "whiney" to do the latter.  Sorry you disagree.

:		 What do you want us to do?  Write your program for you?
:
: 1) This can easily be done with awk
 
Yes, thanks, that much I am aware of, which is why I suggested awk in
the problem.  Actually, someone a few hours ago was kind enough to
mail me about 8 lines of script that has reduced my task to less than
half of what it was.  That is, what he sent showed me how to approach
the math formulas of awk, and applied them to this situation -- which 
is what I most needed.  I'm very grateful.

2) awk can be learned in no time using just the man pages.  I know, that's
: how I learned it. I never heard of awk six months ago.

I do envy you your sagacity.  I posted after spending about 1.5 hours
poring over the man pages and 6 enigmatic pages in a Unix book I have.
Couldn't make hide nor hare of those man pages -- at least insofar as
doing math.
 
Your hints 3) through 5) were somewhat helpful, thanks.  Sorry I struck
a nerve.

: 6) Spend the time you spend begging on the net reading your manual.

I tried.  Begging worked out better.  Thanks.

Anyway, this is really just to say thanks to 2 or 3 who mailed me; I
got enough to take it from here on my own.  That is, unless someone
wants to write my program for me.  :^)

--
 __D_a l_l m a_n  _ R o_s s _ |dman@netcom.com  /or/  |"You sound like a man|
 l  \\ l\\   /l  /\\  l\\   l |dross@well.sf.ca.us    |with a rubber nose." |
 l   >)l \\ /ll /  \\ l \\  l |vox/fax: 1.510.645.1883| -- One-Lung Bill    |
 l  // l  \X ll/--- \\l  \\ l |350 Perkins St., #108  |     Remmer (deceased)
_l//______________________\\l_|Oakland,_CA__94610-3422|_____________________|_
Newsgroups: comp.unix.questions,comp.unix.ultrix
From: humesdg1@netnews.jhuapl.edu (Dave Humes)
Subject: Re: unix version of VMS EDT??
Organization: JHU/Applied Physics Laboratory
Date: Wed, 16 Dec 1992 22:37:08 GMT


We've been using the nu/TPU product from a/Soft now for about 9 months on a Sun
clone (Solbourne).  It provides a good emulation of the VMS EDT interface 
layered on the EVE interface to TPU, but it is not EDT.  However, I think TPU
is a far superior editor to EDT and it looks enough like EDT when you do "set
keypad edt" that there is little reason to stick with EDT.  If your users will
be working from vt100/vt200/vt300 terminals, then I think they will be pretty
happy.  However, any emulation of EDT is likely to be almost worthless if you
are working from non-DEC terminals, X-terminals, or workstations that don't 
have DEC keyboards.  It's almost impossible to remember the keyboard mapping
when using a non-DEC keyboard. 

Good luck.
-- 

-------------------------------------------------------------------------------
David Humes         |       Johns Hopkins University Applied Physics Laboratory
(410) 792-6651      |       humesdg1@aplcomm.jhuapl.edu
-------------------------------------------------------------------------------
-- 

-------------------------------------------------------------------------------
David Humes         |       Johns Hopkins University Applied Physics Laboratory
(410) 792-6651      |       humesdg1@aplcomm.jhuapl.edu
Newsgroups: comp.unix.questions
From: schwager@mike.cs.uiuc.edu (Mike Schwager)
Subject: Simple Korn shell question
Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL
Date: Mon, 14 Dec 1992 23:45:24 GMT


Hi,
Got a quick one.  If I have an alias like this:

alias wow='echo $@ hello there'

or even,

alias wow="echo $@ hello there"

Then why do I get the following when I run the alias?  To wit,

$ wt WOW
hello there WOW
$ 

The argument(s) should be first!  Why not?  The same thing happens with the
print command.
-Mike
Newsgroups: comp.unix.questions
From: saqib@cbnewsm.cb.att.com (saqib.karim)
Subject: A 'cu' type utility that can run zmodem protocol
Organization: AT&T
Date: Fri, 11 Dec 1992 19:47:06 GMT

Greetings:

I am quite sure that I saw an article in this news group about a utility
that will allow a Unix system to dial a remote machine through the modem 
and then run zmodem to download files.  I can not find that article any more.
Could a kind soul please send me that information.  Pointers to any other 
utilities that will allow me to log into a bulletin board and download files
using zmodem would be equally helpful.

Thanks All.
PS: I am running a UNIX System V 3.2.2 on an ATT 6386/25 WGS machine.

Saqib Karim
saqib@cbvox.att.com
From: lukeh@gnumath.rutgers.edu (Luke Higgins)
Newsgroups: comp.unix.questions
Subject: man pages
Date: 15 Dec 92 13:59:36 GMT
Organization: Rutgers Univ., New Brunswick, N.J.


What is the format for man page and how can I read them so that they
make more sense (or print them out.) Any and all information would be
appreciated. Example: I have a file called preps which is a
pretty postscript processor and it has a man page, how do I read it
so that it looks nice?

Thanks!!
Luke
lukeh@gnumath.rutgers.edu
Xref: sparky comp.unix.questions:14650 comp.lang.c:18296
From: craig@kralizec.zeta.org.au (Craig Dewick)
Newsgroups: comp.unix.questions,comp.lang.c
Subject: Re: #include "from/somewhere/else"
Date: 13 Dec 1992 12:01:38 +1100
Organization: Kralizec Dialup Unix Sydney: +61-2-837-1183 V.42bis

aet@mullian.ee.mu.OZ.AU (bert thompson) writes:

>does anyone know how to redefine the default directory from
>which C takes its #include "files"?

>e.g. 

>#include "file.h"

>might include a file from $HOME/my_includes rather than from
>the usual /usr/include.

This may not be exactly what you're after, but most c compiler front
ends support an option to specify additional directories to search for
header files. On my system, there a '-I' option, which is used to do
this. For example, if I type:

  cc test.c -I/extra_headers

the compiler will look in /usr/include AND in /extra_headers to find 
any include files. Of course, if you specify

  #include <fred/include.h>

in the source file, it will look for directories called /usr/include/fred
AND /extra_headers/fred.

As far as modifying it on a system-wide basis, I don't really know. I
suspect that there is some system-specific header file that contains all
such definitions.
-- 
 Craig Dewick               |        - Railway Preservation Industries -
 Send email to:             |            Supporting the Preservation
 craig@kralizec.zeta.org.au |          of Australia's Railway Heritage
Newsgroups: comp.unix.questions
From: tma@encore.com (Thanh Ma)
Subject: Re: CMS Tape Drives
Organization: Encore Computer Corporation
Date: Mon, 14 Dec 1992 15:07:44 GMT

richardf@teal.csn.org (Richard Forbin) writes:


>Has anyone here ever used a Colorado Memory Systems drive under UNIX?
>Been thinking about getting one, they're cheap enough, but I figured I'd better
>check here first...  Anyone use one?? Any input would be helpfull.
>Thanks in advance!


I am thinking of getting one too. Please let me know too.
Thanks,

Thanh
Newsgroups: comp.unix.questions,comp.unix.shell
From: lwall@netlabs.com (Larry Wall)
Subject: Re: How do I invoke a login shell.
Organization: NetLabs, Inc.
Date: Fri, 18 Dec 1992 18:35:21 GMT

In article <mcook.724615604@fendahl.dev.cdx.mot.com> mcook@fendahl.dev.cdx.mot.com (Michael Cook) writes:
: If you have Perl:
: 
:    exec perl -e 'exec("/bin/csh" "-csh", @ARGV) || die "$!"' $argv:q
:                 (note: no comma)^

Well, that's a syntax error, because you can't put a quoted string into
the syntactic "filehandle" slot.  You really want something more like this:

  exec perl -e '$csh = "/bin/csh"; exec($csh "-csh", @ARGV) || die $!' $argv:q

Larry Wall
lwall@netlabs.com
Newsgroups: comp.unix.questions
From: dfox@quack.sac.ca.us (David Fox)
Subject: Re: Cylinder Groups and Data Blocks
Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
Date: 20 Dec 1992 18:26:51 UTC

In article <1gtunnINNgk0@menudo.uh.edu> cavers@menudo.uh.edu (Chris M. Cavers) writes:
>I am trying to obtain a 'map' or list of all of the data areas on a disk
>under sun os 4.1.2.
>Can someone tell me how to do this?
>I've been using the following code to try to do this:

[code deleted]

>Assuming each block is one sector (512 bytes) the above code 
>comes to about half of the number of bytes on the disk (as given by the
>df command).
>
>What is wrong?

The clue is " comes to about half of the number of bytes on the disk".  
df outputs information in terms of 512 byte blocks, and not in kilo-
bytes unless you use the -k flag.  Try using the -k flag with df and
comparing that to the results your program gives.

Newsgroups: comp.unix.questions
From: ray@Celestial.COM (Ray Jones)
Subject: Re: DOT FILES: WHAT ARE THEY FOR?
Organization: Celestial Software, Mercer Island, WA
Date: Sat, 12 Dec 1992 01:12:02 GMT

In <1992Dec7.053308.18381@unislc.uucp> thayne@unislc.uucp (Thayne Forbes) writes:

>Dave Van Damme Ratner (ratner@ficus.cs.ucla.edu) wrote:
>: aet@mullian.ee.mu.OZ.AU (bert thompson) writes:
>: 
>: >i'd like to get a comprehensive list of what all those
>: >Unix dot files mean. so could someone please give explanations
>: >of the use of the following dot files and add any more that
>: >might exist. (yes, i know there are LOTS of them.)
>: [ list deleted for obvious reasons ]
>: Look I think its a waste of bandwidth and time to explain what EACH INDIVIDUAL
>: .whatever file is for.  There are millions of applications, each one creating
>: or using one.  If you have specific questions about a given .whatever file, 
>: fine. 
>: ***  ***  ***  * *   |   "Wham Bam, thank you Van Damme!"	

>In fact, why don't we get a comprehensive list of all the questions asked
>by students every fall, and figure out a way to mass mail them to every
>user at the school.  I'm sorry if bert is not just a naive student asking
>Yet Another Dumb Question, but I AM tired of hearing these questions twice
>a year.  Herewith is my short list of overasked student questions.

That is what the FAQ list if for, however, I thought this is where people
asked questions about UNIX.  With flames like the above, the new user feels
stupid (and maybe some are) and will never ask another question.  Lay Off!

You new guys and gals -- go ahead and ask the questions and ignore the
flames.
-- 
INTERNET:  ray@Celestial.COM   Ray A. Jones; Celestial Software
UUCP:   ...!thebes!camco!ray   6641 East Mercer Way
             uunet!camco!ray   Mercer Island, WA 98040; (206) 947-5591
The probability of one or more spelling errors in this missive approaches
Newsgroups: comp.unix.questions
From: Steve_Goyette@mindlink.bc.ca (Steve Goyette)
Subject: Sun 2/50 Configuration
Organization: MIND LINK! - British Columbia, Canada
Date: Sun, 20 Dec 1992 01:24:41 GMT

Hi all,


        I have a friend with a Sun 2/50 Workstation and a SCSI host adapter.
oot from the Tape (A wangtek 5099 witha an EMULEX QIK-02 to SCSI converter
board) (Supposedly standard Tape for the 2/50) Any ideas what it could be??
does anybody have the docs for configuring the Emulex board and the SCSI
host???  Anyway, ANY help would be REALLY helpful.



--
------------------------------------------------------------------------------

Steve Goyette                    |       Email : Steve_Goyette@MindLink.BC.CA
Software Engineer                |       Cserve: 71763,1435
Abstract Automation Limited      |       Phone : (604) 421-8864
                                 |       Fax   : (604) 421-7722 (Call first)
-------------------------------------