HDTenEightyP/NetNews huggingface dataset:
From: jhgreen@cs.sandia.gov (Jethro H. Greene)
Subject: Standard AND piped input
Followup-To: jhgreen@c.sandia.gov
Originator: jhgreen@cs.sandia.gov
Organization: Sandia National Laboratories, Albuquerque, NM
Date: Mon, 9 Nov 92 04:21:22 GMT

When one pipes to something, the the output of the first becomes the input
of the second.  What would you do if you wanted the output of the first to
be only be the beginning of the input for the second.  For example, lets
say I wanted to put the contents of my current directory and my dogs name into
a file

	$ ls | thing_that_I_am_looking_for > output_file
        bob is my dog
	^D
	$ cat output_file
    	file1
	file2
	bob is my dog
	$

It seems that this might have something to do with `tee`, but I can't figure
out how.

Any help anyone could give me would be greatly apreciated.

Thanks

--------------------------- |\_/| --------------------------------------------
| Jethro H. Greene (Jed) | \`0.0'/ | Massively Parallel Comp. Research Lab., |
| jhgreen@cs.sandia.gov  | =(_-_)= | Sandia National. Lab., Albuquerque, NM  |
---------------------------   U   --------------------------------------------
From: peter@global.hacktic.nl (Peter Busser)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: Thu, 12 Nov 1992 00:50:25 GMT
Organization: Global Village 1

rahardj@ccu.umanitoba.ca (Budi Rahardjo) writes:

>Why do you insist to install it yourself anyway ?

Because that often saves (a lot of) money.

Newsgroups: comp.unix.questions
From: r0506048@csman.csie.ntu.edu.tw (Chun-Hung Lin)
Subject: "find" problem
Reply-To: r0506048@csman.csie.ntu.edu.tw
Organization: Communication & Multimedia Lab, NTU, Taiwan
Date: Mon, 9 Nov 1992 05:38:50 GMT

Hello,
 
  I found that the UNIX command "find" cannot find the file
across the file system, i.e. I cannot find the file on file
system B when I am now on file system A. Is it true?
If it is true, how can I do this job? Any utility or command
is available?
 
=================================================================
Chun-Hung Lin                     
r0506048@csman.csie.ntu.edu.tw    
Communication & Multimedia Lab.
Dept. of Comp. Sci. & Info. Eng.
National Taiwan University, Taipei, Taiwan, R.O.C.


Newsgroups: comp.unix.questions
From: nk24+@andrew.cmu.edu (Nicholas Kramer)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD? (long)
Date: 12 Nov 92 07:53:55 GMT
Article-I.D.: andrew.Af0dcnG00iUx43BO43
Organization: Freshman, MCS general, Carnegie Mellon, Pittsburgh, PA


 One quick question: What is the most widely used operating system
around? DOS. No Windows, just DOS. While nearly everything is now
growing faster than DOS-only machines, there is still a quite
substantial base of DOS only machines. Most of these aren't power users.
Most are average Joe's who learned Word Perfect for DOS and don't really
feel like learning anything new. Many people in fact were not overly
thrilled when they were forced into Windows, away from their familiar
Word Perfect for DOS. (Some got WP for Win, some didn't)

 My point is that most average users have to be dragged to the next
operating system anyhow. And the people who do the dragging aren't other
average Joes, and they aren't the computer experts. Its the people who
purchase the machines at work. Why did IBM PCs become such big sellers
in the home? Because they were big sellers in the office. Whatever the
management is sold on for operating systems is what the next mass
operating system will become. And for better or worse, managers still go
for perceived power as much as they go for user friendliness.


						Nick
Newsgroups: comp.unix.questions
From: etxmesa@eos.ericsson.se (Michael Salmon)
Subject: Re: grep
Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
Organization: Ericsson Telecom AB
Date: Thu, 12 Nov 1992 14:43:22 GMT

In article <6370@sersun1.essex.ac.uk>, 
peter@essex.ac.uk writes:
|> A quick question I was asked this morning. "Why is grep so called?"

It comes from an ed command:

g/re/p

i.e. globally search for a regular expression and print those lines
that match.

-- 

Michael Salmon

#include	<standard.disclaimer>
#include	<witty.saying>
#include	<fancy.pseudo.graphics>

Ericsson Telecom AB
Stockholm
Newsgroups: comp.unix.questions
From: etxmesa@eos.ericsson.se (Michael Salmon)
Subject: Re: Vi-question
Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
Organization: Ericsson Telecom AB
Date: Fri, 13 Nov 1992 08:07:19 GMT

In article <1992Nov12.180534.1819@ncar.ucar.edu>, 
tparker@music.scd.ucar.edu (Tom Parker) writes:
|> In article <34054@adm.brl.mil> 
|> yellow@judy.indstate.edu (S. Vemula) writes:
|> >Hi,
|> >   
|> >     Sometime back, somebody mailed on how to use arrow keys in insert mode
|> >     also, to move around in the document.  I think, it is by mapping the
|> >     arrow keys.  Could somebody mail me as how i have to set up my keys.
|> >
|> >     thanks,
|> >     Shank Vemula
|> 
|> 
|> I do it with these lines in my .exrc file:
|> 
|> " Allow arrow keys to work in VI "text insert" mode
|> :map! ^[OA ^[ka
|> :map! ^[OB ^[ja
|> :map! ^[OC ^[la
|> :map! ^[OD ^[ha

Under SunOS 4.1.1 I needed to insert ^V's before the ^[ in my .exrc, I
also think that it is better to map left arrow to ^[i as ^[ha will not
work in column 1.

-- 

Michael Salmon

#include	<standard.disclaimer>
#include	<witty.saying>
#include	<fancy.pseudo.graphics>

Ericsson Telecom AB
Stockholm
Newsgroups: comp.unix.questions
From: guenther@stolaf.edu (Philip Guenther)
Subject: Re: simple makefile question
Organization: Academic Computing Center, St. Olaf College
Date: 5 Nov 92 19:12:44

In article <EJH.92Nov4112711@khonshu.colorado.edu> ejh@khonshu.colorado.edu (Edward J. Hartnett) writes:
<story and makefiles deleted>

   I thought that all dependancies are evaluated, but it seems to do only
   the first! Any help out there?

Make starts with the first entry by default, evaluating from there.
Thus to make all things by default, insert as the first target, the
target "all" with dependencies atobf and rdhdr, as so:

all:	atobf rdhdr

Thus when you just do a make or a make all, it will check to see if
each of the other programs is up to date.

Philip Guenther
--
guenther@stolaf.edu (Philip Guenther)       | The ACC might agree with me,
Student Sys Prog, Academic Computing Center | but with that bunch, (and me)
St Olaf College, Northfield, MN 55057-1001  | you never know... :-) :-| :-(
"Life makes sense?  LIFE MAKES SENSE!!?  Where do people get these ideas?"-me
From: peter@global.hacktic.nl (Peter Busser)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: Thu, 12 Nov 1992 00:48:34 GMT
Organization: Global Village 1

rahardj@ccu.umanitoba.ca (Budi Rahardjo) writes:

>Where can I get NT, now ? 

Ask MS. I believe it is sold right now. Probably to developers. Not that I
care.

Newsgroups: comp.unix.questions
From: osycs@giac1.oscs.montana.edu (Craig Spannring)
Subject: Re: net.views - mainframe programmers in an open systems world
Keywords: n
Organization: Geographic Information & Analysis Center Montana State University
Date: Tue, 3 Nov 1992 22:15:43 GMT

Does this strike anyone else as the dumbest question they've asked
yet?  I can hardly wait for next month's question, "Do mainframe 
printers have a place in open environments?"

-- 
=========================================================================
 Six of one, 110 (base 2) of | Craig Spannring --- (406) 994-6128
 another.                    | osycs.giac1.oscs.montana.edu
 ----------------------------+ Geographic Information & Analysis Center
Xref: sparky comp.unix.questions:13055 news.admin.misc:265
From: floyd@wmi.com (Floyd Miller)
Newsgroups: comp.unix.questions,news.admin.misc
Subject: Looking for DG/UX and LynxOS forum
Date: 6 Nov 92 15:03:52 GMT
Organization: Woodward McCoach, Inc.


   We have a limited news feed and do not explicitly receive
   comp.unix.questions at this time.  We do receive news.admin
   and I hope this article is not considered to be at least
   somewhat relevant to news.admin.misc.

   I am trying to find groups in which topics concerning LynxOS
   and DG/UX  would be discussed.  We can add groups to our feed
   but I don't see any groups listed in the active files that mention
   these, specificly.

   Are there any current groups in which these topics could be discussed?

   If not, I would consider going through the process of polling the
   community for the creation of groups, perhaps comp.os.lynx and
   comp.os.dgux.

-- 
* * * * * * * * * * * * * * * * * * * * * * * *
*  Floyd Miller             floyd@wmi.com     *
*  Woodward McCoach, Inc.   West Chester, PA  *
* * * * * * * * * * * * * * * * * * * * * * * *
From: olson@anchor.esd.sgi.com (Dave Olson)
Newsgroups: comp.unix.questions
Subject: Re: SGI questions
Date: 6 Nov 92 10:49:20 GMT
Organization: Silicon Graphics, Inc.  Mountain View, CA

In <1d6bqtINNga1@usenet.INS.CWRU.Edu> ce095@cleveland.Freenet.Edu (Jeffrey Scott Traigle) writes:
| Well, the first one isn't specifically SGI (I don't think), but here it is...
| 
| What compression program creates a .z (note lower case) files? The
| man pages on our SGIs are in this format.

pack; also see unpack, pcat, and man.

| Somehow the man pages for enscript and transcript were removed from
| our system some time ago. I managed to locate enscript on the net,

I hope you located some clone.  enscript is part of the Transcript
package *sold* by Adobe (or sold through their licensees), and they
wouldn't be happy to hear about people giving copies away.

| but the man page was in nroff/troff format, which we don't have. Is
| this the correct format for SGI man pages? If it is, I assume the
| man command takes care of translating the formatting since nroff and
| troff aren't installed on our system.

If you want nroff/troff, etc., you need to buy the DWB package,
because AT&T (now USL) in their infinite wisdom decided that
it shouldn't be part of the main source license.

Similarly, they decided that man pages are source, so the .z
files you are see are nroff'ed, tbl'ed, eqn'ed, or whatever,
and then pack'ed.
--
Let no one tell me that silence gives consent,  |   Dave Olson
because whoever is silent dissents.             |   Silicon Graphics, Inc.
    Maria Isabel Barreno                        |   olson@sgi.com
From: harley@engrhub.ucsb.edu (Hahn;Harley;;;;HAHN;personal;930630;)
Newsgroups: comp.unix.questions
Subject: IS UNIX DEAD?
Summary: one in a series of moderated comments
Date: 10 Nov 92 06:01:43 GMT


This is number 10 in a series of 22 responses to the question:
 
What do you think about the Byte magazine cover that asked:
IS UNIX DEAD?
 
(moderated by Harley Hahn)
 
----------
From: dan@cedb.dpcsys.org (Dan Busarow)
 
I sincerely doubt it.  Microsoft and IBM both have a huge stake 
in seeing their respective OS take over the market, and I think 
that for the average DOS user Microsoft has already won the 
battle with Windows, these users do not need NT nor is it 
targeted at them. >From my brief experience with OS/2, I feel 
that the only people who will use it are big IBM shops who like 
the warm fuzzys they get by keeping the shop true blue.
 
The hype that this battle between IBM and Microsoft has generated 
would lead one to believe that nothing currently exists to supply
the role of a true multi-tasking OS on Intel machines.  This is 
of course, untrue.  There are many Unix ports running on this 
hardware already and there have been for several years.  The 
marketing people at both companies have had to invent a need in 
order to sell their product.
 
Unix already satisfies need which these two OS's purport to 
solve, multi-tasking, networking and GUI's are all available and 
Unix also throws in multi-user which these two seem to have 
forgotten about.
 
We sell vertical market software for Unix systems and have seem a 
continual growth in interest in Unix over the past several years.
This growth in interest is not slowing down, in fact it seems to 
be increasing as Open Systems awareness comes to more people.
 
This (Open Systems) is where Unix has always shined and always 
will. Sure, Microsoft may port to MIPS and Alpha chips as well as 
Intel but three processors out of the hundreds out there hardly 
qualifies. I haven't heard about IBM's plans for OS/2 in this 
regard but I don't see the Closed Systems giant licensing there 
product to other vendors at a reasonable price as a very likely 
event.  Have you seen what the are asking for the APPC license?  
100,00K and up to license a networking protocol!  Amazing.
 
While USL and the Unix vendors most definitely want and need to 
make money from their products I do not think that they have the 
megalomania of either Microsoft or IBM.  Therefore we will 
continue to see advances in Unix coming out of small and not so 
small companies who are dedicated to continuing the growth of the 
Unix market.
 
I've rambled a bit, again the key to me is that Microsoft and IBM 
are trying to convince the world that they have THE solution for 
all our computing problems when in fact, they have just given us 
a couple more OS's that do what Unix ALREADY does.
 
==========
From: peter@global.hacktic.nl (Peter Busser)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: Fri, 6 Nov 1992 12:43:18 GMT
Organization: Global Village 1

twpierce@unix.amherst.edu (Tim Pierce) writes:

>>You argue that it can never be made easy.
>>I think it can and it should.  Anything can be tamed.

>I'll bet that once it's "tamed," it won't be something that many
>people will think accurately deserves the name "Unix."

Well, what's wrong with that? Many people can't tell the difference between
a 4 cylinder and a 6 cylinder motor. And I wonder why there are people who
think that UNIX won't be UNIX anymore if it can be used by 'stupid' users?
I mean, hide the ugly details but don't throw them away.

Look at a video recorder. It's a complex thing inside, but you can't see that
on the outside. There's even a cover for the 'difficult' functions so people
aren't frightened by a plethora of buttons and functions. And it doesn't take
an expert to get the thing to do what it is supposed to do. I can't sell a
video recorder which requiers soldering to operate it, people don't buy that,
even if it's more flexible. But we don't throw away the electronics by putting
it in a cover, we just give it a nice cover for people who like that. People
who like electronics are knowledgable enough to open the cover.
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.unix.questions
Subject: Re: .profile vs. .kshrc
Date: 6 Nov 1992 17:30:16 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
Distribution: na
NNTP-Posting-Host: telecaster.think.com

In article <1992Nov04.233827.1078@trebor.uucp> root@trebor.uucp (Bob Stockler) writes:
>  If the
>ENV environmental parameter is set (and exported) in either "/etc/profile" or
>"$HOME/.profile" to contain the full pathname of any file, that file will be
>read (and the commands in it executed, as though it were a "dot" file) upon
>the invocation of any instance of the KornShell, at any level of subshells
>(Bourne or Korn).  I have no idea how this relates to C shell users.

It's not as good as the C shell's .login and .cshrc facility.

The main problem with this Korn Shell feature is that it doesn't provide
any way to customize the shell environment in a shell that isn't descended
from a login shell.  These include the shell in which cron, at, and batch
jobs run, and commands executed with rsh/remsh.  The C shell always
executes the user's .cshrc (unless the "-f" option is specified), so you
always get your custom environment.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Newsgroups: comp.unix.questions
From: papresco@undergrad.math.waterloo.edu (Paul Prescod)
Subject: Re: IS UNIX DEAD?
Organization: University of Waterloo
Date: Mon, 9 Nov 1992 12:19:11 GMT

In article <JC.92Nov7141053@condor.bu.edu> jc@raven.bu.edu (James F. Cameron) writes:
>>>>>> "Peter" == Peter Busser <peter@global.hacktic.nl> writes:
>Well, some of can't stand to have to buy a floppy drive to install an
>OS.  *8-) Seriously, that is not a good reason.  The drives are fairly
>cheap, can be used for MANY, MANY different applications, and can even
>play some tunes for you.  (* grin *)

You are right.  100% right.  Everyone SHOULD go out and buy a CD-ROM.

BUT THEY HAVEN'T.  SO WHO CARES!  Sure the world would be a better place
if everyone had CD-ROMs.  But if they *DON'T* then selling an OS only
on CD-ROM is sorta silly, isn't it!

I think everybody should have DSPs on their motherboard.  But I'm not about
to write an OS that REQUIRES a DSP.  Because even though it's a good idea,
it's just not out there!

It's just an example, no flames about the relative merits of DSPs, please!
From: pfcouvar@unix.amherst.edu (Peter F. Couvares)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: 13 Nov 92 00:13:47 GMT
Organization: Amherst College

peter@global.hacktic.nl (Peter Busser) writes:

>>>If you want a nice graphical interface
>>>like Windows or Os/2, you have to ftp and make that too.
>>
>>Um, no ... you just install X from the SLS disks, I believe.
>
>Yep. But then, how do I know to type in 'startx' on the command line?

	The same way you know to type "win" to start MSWindows or to
double-click to start a Mac application -- you read the short intro
documentation. It's not the least bit difficult.

-Peter
From: peter@global.hacktic.nl (Peter Busser)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: Fri, 6 Nov 1992 12:15:57 GMT
Organization: Global Village 1

jc@raven.bu.edu (James F. Cameron) writes:

>the things you want, the system would need to be pretty big.  I can't
>*stand* having to install software on a PC which requires many
>floppies.  

Others can't stand to buy a CD-ROM device just to install an operating system.
From: peter@global.hacktic.nl (Peter Busser)
Newsgroups: comp.unix.questions
Subject: Re: IS UNIX DEAD?
Date: Thu, 12 Nov 1992 00:45:40 GMT
Organization: Global Village 1

twpierce@unix.amherst.edu (Tim Pierce) writes:

>>NO, YOU are an idiot, if you see linux as the hope for the future.  
>What are you talking about?  You said that a "real" operating system
>should install from floppy.  Linux installs from floppy.  Conclusion:
>you lose.

But it doesn't meet the other requirements listed... You lose.

>Um, no ... I think most people say, "Cool!  What's the number?  What
>baud rate?"  What world are *you* living in?  One where Prodigy hasn't
>yet been introduced?

What's Prodigy?

>>If you want a nice graphical interface
>>like Windows or Os/2, you have to ftp and make that too.
>Um, no ... you just install X from the SLS disks, I believe.

Yep. But then, how do I know to type in 'startx' on the command line?

Newsgroups: comp.unix.questions
From: root@trebor.uucp (Bob Stockler)
Subject: Re: Separate tabs from blanks ? 
Organization: Bob Stockler
Date: Sat, 07 Nov 1992 19:28:30 GMT

peer@ccrma.stanford.edu (Peer Landa) writes:

>Is there any text processing filter which separates tabs from blanks ?
>Also, is it possible in AWK to print a previous (or second previous) line after
>a specific word is find on the current line ??

I'm not sure I understand your first question, so I'll ignore it.

The answer to your second question is "Yes".  Here's a Bourne shell script
I wrote about 5 years ago to give the functionality of a "grep-in-context".
Knowing what I do now, I could improve upon it, but the code in it should
serve well enough as an example for you to do what you asked about:

:
# @(#) cgrep.awk
usage="usage:  $0 'string ...' filenames"
[ "$1" ] && { strings=$1 ; shift ;} || { echo $usage ; exit 1 ;}
[ "$1" ] && files="$@" || files=*
for i in $strings ; do pattern="$pattern$fs$i" ; fs=\| ; done
awk '
BEGIN          { prev1 = prev2 = "" }
/'"$pattern"'/ { printf( "\nFile: %s - Line: %d\n\n", FILENAME, NR )
                 printf( "%s\n%s\n%s\n", prev1, prev2, $0 )
                 if ( getline ) { print ; prev1 = prev2 ; prev2 = $0
                   if ( getline ) print 
                 }
               }
               { prev1 = prev2 ; prev2 = $0 }
' $files
exit
# EOF 'cgrep.awk'

On casually looking at it now, it's more like an "egrep-in-context".

Newsgroups: comp.unix.questions
From: fitzgb@mml0.meche.rpi.edu (Brian Fitzgerald)
Subject: Re: How to give root permission to user??
Organization: Rensselaer Polytechnic Institute, Troy, NY
Date: Fri, 13 Nov 1992 14:47:25 GMT

<KJB6@psuvm.psu.edu> writes:
>I would like to create a script file that will do some commands that only root
>is allowed to do. How do I allow users to use this file to see the results?
>
>I think it is in the 'chmod', but I am not sure.

The question is answered in the comp.security.misc FAQ.  The article
contains the reasons why suid shell scripts are unsafe, and information
about suid binary programs.

Brian
From: rlyle@nl.oracle.com (Rob Lyle  Wizard of Ozje)
Newsgroups: comp.unix.questions
Subject: Writing 60Mb tapes using QIC 150Mb drive - SUN
Keywords: QIC tape drive, low density
Date: 4 Nov 92 16:44:53 GMT
Organization: Oracle Europe

ANybody out there ever written an old 60Mb QIC format tape using a QIC-150 drive?
Want to tell me how you did it?  I have an old Sun3 with a brain dead 60Mb tape
unit, but only 150Mb tape drives at work.  I want to write tapes readable by
my own drive.

There's a large hug and lots of peppermints to whoever replies first!

--Rob.


-- 
Robert P K Lyle		#include <std_disclaimer.h>	**********************
UNIX System Manager					 If I could play the
ORACLE Nederland					Blue Peter theme tune
Rijnzathe 6,	 					   here, I would.
3454 PV  						**********************
De Meern
E-mail:  rlyle@nl.oracle.com				FAX:     +31 3406 65603
Voice:   +31 3406 94211					Private: +31 10 4809140
From: perl@dwrsun4.UUCP (Robert Perlberg)
Newsgroups: comp.unix.questions
Subject: Re: net.views - mainframe programmers in an open systems world
Date: 13 Nov 92 18:47:15 GMT
Organization: Dean Witter Reynolds Inc., New York

In article <49331@shamash.cdc.com>, jitze@svl.cdc.com (Jitze Couperus) writes:
} nelson_don@comm.tandem.com (Don Nelson) writes:
} 
} >In article <1992Nov03.145701.22033@utoday.com> Mitch Wagner,
} >wagner@utoday.com writes:
} >>
} >>           Is it possible to put the skills of mainframe programmers
} >>           to use in open environments? If so, how?
} >> 
} >> 
} >I'm having a little trouble understanding the question.  Perhaps you 
} >could explain in 25 words or less why mainframe programmers differ from 
} >programmers in "the open world" (which is definitely not as open as some 
} >people think).  Most mainframe programmers work on business applications 

} For example - years ago the industry discovered the benefits
} of separating screen definitions from the body of the 
} application's code (much like separating the DDL for a database
} from the DML). This is still rarely provided by the "open"
} Cobol compilers, so users frequently resort to separate screen
} design/handling packages (e.g. JAM from JYACC) to avoid
} entangling such stuff inside the application's code itself.

It has never been necessary for device-specific or system-specific code
to be embedded within the application.  Good programmers have always
written programs in a modular fashion such that if the application
needs to be ported, only the system-specific modules need to be
modified, not the application code.  My view of mainframe programmers
is that they don't do modular programming because they don't understand
which aspects of the system may vary from one system to another since
the system they are using is the only system they have ever known.

Robert Perlberg
Dean Witter Reynolds Inc., New York
{murphy | philabs}!dwrsun4!perl
	-- "I am not a language ... I am a free man!"
Newsgroups: comp.unix.questions