HDTenEightyP/NetNews huggingface dataset:
From: root@trebor.uucp (Bob Stockler)
Subject: Re: Problems with tilde (~) substitutions...
Organization: Bob Stockler
Date: Thu, 15 Oct 1992 21:48:28 GMT

olsenc@carson.u.washington.edu (Clint Olsen) writes:

>user=mike
>homedir=~$user
>Rather than expand to mike's home directory, I get this:
>% echo $dir
>~mike

eval homedir=~$user

Newsgroups: comp.unix.questions
From: liuwu@acuson.com (Wu Liu)
Subject: Re: weird behaviour of sed
Organization: Acuson; Mountain View, California
Date: Thu, 15 Oct 1992 17:55:32 GMT


>mau@beatles.cselt.stet.it writes:
>>My man page (SunOs 4.1.2) for sed says that 
>>           s/regular expression/replacement/flags
>>change the regular expression into the replacement and defers to ed(1).
>>ed says that it is the first occurrence of a string which match the RE to be
>>substituted. Fine.
>>
>>So, if z is a file containing the line 
>>	asdfgh asdgfh asdfgh asdgfh asdfgh asdgfh
>>the command  sed 's/.*gf/GF/1' z should return 
>>GFh asdfgh asdgfh asdfgh asdgfh
>>, shouldn't it? Well, it returns just GFh .
>>
>>Which is the reason of this behaviour? and how can I accomplish my goal?

Uh, the sed command really is 's/.*fg/GF/1', isn't it?  Otherwise,
nothing would be substituted (no match would be found).

krisk@ux1.cso.uiuc.edu (Kris Klindworth) replies:
>I don't think it's well documented but the regular expression takes the
>LONGEST pattern which matches.  In your case that was everything from
>the beginning of the line to the last "gf".  That's the why.
>
>I'll be greatly interested to see if anyone can answer the how question
>without going to another program.

Kris answered the why.  The how is a bit trickier. If we assume that
we would like the regular expression to match the first
whitespace-delimited (i.e. "word") string on a given line, try
"sed 's/[^ ^I]*fg/GF/1'", where ^I is replaced with a real tab
character.  If other delimiters are used, include them in the
expression inside of the brackets.
-- 
Wu Liu                          Software Engineer, User Interface Group
liuwu@acuson.COM                Acuson
Newsgroups: comp.unix.questions
From: root@trebor.uucp (Bob Stockler)
Subject: Re: Getting % prompt in piping "more"
Organization: Bob Stockler
Date: Wed, 14 Oct 1992 04:38:26 GMT

guenther@stolaf.edu (Philip A Guenther) writes:

>In <1992Oct06.082758.837335@zeus.calpoly.edu>, dgong@zeus.calpoly.edu (Irkel) said

>   Does anyone out there know how to get the percent prompt when
>   piping through "more"?

When you can tell me how much water is upstream from my tap when I open
it to take a shower, I can tell you a way to get "more" to tell you the
percent of of data it's seen from a pipe you've opened.
From: rdorich@jade.tufts.edu (Rob)
Newsgroups: comp.unix.questions
Subject: Re: A QUESTION
Date: 9 Oct 92 23:09:12 GMT
Organization: Tufts University - Medford, MA

Since nobody suggested cut...
how about:

cat file | cut -d' ' -f1

Note that you can change the delimeter (-d) to whatever you want to,
here I set to space.

Rob
--

-------------------------------------------------------------------------------
Roberto Dorich           |           /~~  \ /  ~~/~~ /~~/  /~~  /|  /    /~~
                         |    SKI   /--    X    /   /__/  /--  / |/ |   /--
rdorich@jade.tufts.edu   |         /__    / \  /   /\    /__  /     |  /__
-------------------------------------------------------------------------------
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.unix.questions
Subject: Man page naming convention
Date: 8 Oct 1992 17:54:04 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
Distribution: world
NNTP-Posting-Host: telecaster.think.com
Summary: Why does section number appear twice

This is the kind of silly question I usually answer, but now I've come up
with one of my own....

Why does the man command require the section number of the man page entry
to be in the file name suffix, when it's already in the directory name?
One possibility I considered is that it would allow you to link all the
man<section> directories together if you wanted; however, I'm under the
impression that the naming convention predates symbolic links (the only
directory links that are normally permitted).
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
From: WOODFORDM@vt3.hanscom.af.mil (MARK WOODFORD)
Newsgroups: comp.unix.questions
Subject: In search of... Hardware/Software recommendations
Date: 13 Oct 92 18:48:10 GMT

Greetings,

We are in the process of evaluating Unix platforms for our site.  The idea is
to get the "most bang for the buck".  The machine is to be used mainly as a
central server for a database engine (ORACLE, or some reasonable equivalent).
What I am hoping to get from folks in 'netland' is any thoughts on what type of
machined should be used.  Factors which should be considered are:

		1) Price/Performance
		2) Standards compliance (POSIX)
		3) Ease of installation/maintenance
		4) expandability/adaptability
		5) anything else not covered in 1-4

Please send any lauds and applauds, flames, comments, thoughts or items of 
general interest via mail and I will summarize if requested.  If there is an
additional or better place for this to be posted, please let me know.

							Thanks.


---------
Mark Woodford					WOODFORDM@GW1.HANSCOM.AF.MIL
Computer Sciences Corporation, Applied Technology Division
USAF ESC/SC, Hanscom AFB, Lexington, MA
Disclaimer: The opinions and ideas expressed are my own as my employer does
            not generally allow opinions and ideas without a prior written
            request filled out in triplicate.
-------------------
From: geir@fdmetd.uucp (Geir Engebakken)
Newsgroups: comp.unix.questions
Subject: Re: Hidden (invisible) files
Date: 7 Oct 92 16:36:24 GMT
Organization: Fellesdata a.s, Oslo, Norway

In article <1992Oct6.134124.16937@ee.rochester.edu>, streb@ee.rochester.edu (Chuck S.) writes:
> Everyone says use .filename or .directory how about 
> chmod og-rw filename ;this keeps people out
> first mkdir ." " which is a directory call space
> chmod og-rw ." "
> cd ." "
> do what has to do here
> 
> files can be name " " or "  " or "    " or "  .." ect

Files called "  " etc. will be visible in an ls listing as blank lines,
so you will know there is a file there called _something_. One might
just use 'od -c' on the directory file to find out how many SPC'es there
are or get the unprintable characters as TAB printed!

It's better to call the file "<whatever the terminals up-arrow is> 
e.g. "^[[A" for vt100 terminals. This will effectively hide the
file. Of course this will only work in a homogenuos environment with all 
terminals of same type!

Geir


If you 

> 
> chuck
> 
> -- 
> ==============================================================================
> =  Thanks for Whatever needed to be written to the net! 
> =  There's no place like internet!!!                                      
> =  Chuck Streb  internet streb@galaxy.ee.rochester.edu





-- 
Geir Engebakken, Fellesdata a.s, P.O. Box 248, 0212 OSLO 2, NORWAY
Phone : +47 2 52 80 44                            Fax   : +47 2 52 85 10
E-mail : ...!mcsun!nuug!fdmetd!geir  or           geir@fdmetd.uucp
<The opinions expressed, if any, do not represent Fellesdata a.s>
From: benjamin-goldsteen@uokhsc.edu (Benjamin Z. Goldsteen)
Newsgroups: comp.unix.questions
Subject: Published vs Permanent in the arp table
Date: 14 Oct 92 05:06:36 GMT
Organization: University of Oklahoma HSC, R&E Computing
Originator: news@essex.ecn.uoknor.edu


     I can't figure out what the difference between a permanent and
published arp entry is.  I would assume that permanent would mean that
whenever the computer wanted to reach that computer, it would know its
ethernet address.  I would also assume that published means that
whenever there is a broadcast of "where can I find xxx", the machine
would answer (like for rarp requestions).

     However, on both the unix machines I have access to -- DGUX (SYSV)
and AIX, it doesn't seem to make a difference.  In fact, whenever you
used the builtin rarp commands on DGUX (initrarp), it only sets
permanent -- not published.  Which should I use?

     Also, what problems could I cause by making a permanent arp entry
to another mini/unix box?  I would like to make it so that nobody else
on the local network can claim they are coming from certain machines. 
It would seem I would make these permanent entries and rarp machines
published, but if permanent is really published, what happens?


Thanks
P.S.Does anybody know where the real bottlenecks in NFS are?  Is it the
network or the protocol?
Newsgroups: comp.unix.questions
Subject: Re: ls Command for MS-DOS
From: gregb@netlink.cts.com (Greg Beron)
Date: Fri, 16 Oct 92 07:46:58 PDT
Organization: NetLink Online Communications, San Diego CA

martin@datacomm.ucc.okstate.edu (Martin McCormick) writes:

> is there any place I can find the Unix ls command as an executable binary
> to run in MS-DOS.  I have found other unix commands in various places and wou
> like to be able to have that functionality in DOS.  I wrote an awk script,
> Martin McCormick WB5AGZ   Stillwater, OK
> O.S.U. Computer Center Data Communications Group

Try calling Mix Software at (214) 783-6001 and ordering their C/Utilities
Toolchest.  It is a full suite of Unix utilities, including ls. It also
includes a C-Shell and Unix type login routines.  I have used it on my 
DOS mashine for a while and am quite happy with the functionality for the
low price.
-Greg

--                    
INTERNET:  gregb@netlink.cts.com (Greg Beron)
UUCP:   ...!ryptyde!netlink!gregb
NetLink Online Communications * Public Access in San Diego, CA (619) 453-1115
Newsgroups: comp.unix.questions
From: root@trebor.uucp (Bob Stockler)
Subject: Re: Logon detection
Organization: Bob Stockler
Date: Wed, 07 Oct 1992 02:21:41 GMT

Tom Christiansen <tchrist@convex.COM> writes:

>From the keyboard of weigand@pecan.cns.udel.edu:
>[81 lines of C code deleted.]

>I have never come to understand why people continually 
>want to program in assembler when a few lines of C will do.

>I have never come to understand why people continually 
>want to program in C when a few lines of sh will do.

>In this case, a few lines (or fewer!) of sh will do.  
>Why make a binary that takes 80 lines to express the
>same concept, doesn't use existing tools, and requires
>that a separate binary be installed on all your architectures,
>using up vastly greater amounts of disk space?

Maybe they came from a messydos background ? ? ?

Newsgroups: comp.unix.questions
From: root@trebor.uucp (Bob Stockler)
Subject: Re: A QUESTION
Organization: Bob Stockler
Date: Fri, 09 Oct 1992 00:45:00 GMT

csc5840@hertz.njit.edu (Sekhar Chitti) writes:

>I have a question on using 'sed' and 'awk' to edit a text file.
>I have a text file of nearly 500 lines and having 6 fields.
>Now that I wanna delete the last 5 fields of each line and 
>keep only the first one. What is the easiest way I can do this? 

<infile awk '{ print $1 }' >outfile
From: rjm@inf.rl.ac.uk (Roger May)
Newsgroups: comp.unix.questions
Subject: Re: What does cc -D option means ?
Date: 13 Oct 92 06:42:02 GMT
Reply-To: rjm@inf.rl.ac.uk
Organization: SERC Rutherford Appleton Laboratories


cc -DWANT_X11 is the same as putting #define WANT_X11 in the top of an include file or
c program.

Somewhere in your code its checking this define and conditionally compiling some code.
e.g

#ifdef WANT_X11
	/* Do some X11 Stuff */
	...
	...
#else
	/* Do some Non-X11 Stuff */
	...
	...
#endif


Hope that helps

Roger

---
From: pd@x.co.uk (Paul Davey)
Newsgroups: comp.unix.questions
Subject: Re: How to set display at login?
Date: 16 Oct 92 19:44:59 GMT
Distribution: comp
Organization: IXI Ltd.
X-Disclaimer: This is not the view of IXI Ltd unless explicitly stated.
X-Copyright: The author asserts the right of paternity in this message.

>>>>> On 14 Oct 92 15:31:08 GMT, dwabra@watson.ibm.com (David Abraham) said:
  
David> How can I log in to a remote machine and automatically have the
David> shell figure out what my local display is and set it properly?

Use the shell script xon in X11R4 and R5.

It does an rsh (or remsh) to the remote machine and starts an xterm
(or other client).

--
    Regards,			IXI            Internet: pd@x.co.uk
	Paul Davey		Vision Park    UUCP:     pd@ixi.uucp
				Cambridge      Bang:     ...!uunet!ixi!pd
 "These are interesting times"	CB4 4ZR, UK    Tel:      +44 223 236 555
From: dave@cs.arizona.edu (Dave Schaumann)
Newsgroups: comp.unix.questions
Subject: Re: 'w' command
Date: 12 Oct 92 06:52:12 GMT
Reply-To: dave@cs.arizona.edu (Dave Schaumann)
Organization: University of Arizona

In article <1992Oct11.073555.19892@vela.acs.oakland.edu>, asriniva@vela (MONK) writes:
>The 'w' or the what command seem to intrude the privacy,

So you think `w' "intrudes the privacy", huh?  Ever try "ps -au"?

>IS there any way
>to mask what the user is doing, to a foreign user executing the w command.
>The only way i thought so was by Starting a script, which creates a virtual
>shell.

As you've already realized, it's fairly easy to hide from `w'.  I
don't think there's any way to hide from "ps -au", though.

If you really want private computing resources, go get yourself a
single-user box for your desk.

-- 
You unlock this door with the key of imagination.  Beyond it is another
dimension: a dimension of sound, a dimension of sight, a dimension of mind.
You're moving into a land of both shadow and substance, of things and ideas.
You've just crossed over into... the Twilight Zone.
From: fyl@ssc.com (Phil Hughes)
Newsgroups: comp.unix.questions
Subject: Re: Which shell is more popular
Date: 16 Oct 92 16:44:49 GMT
Organization: SSC, Inc.,  Seattle, WA
X-Newsreader: Tin 1.1 PL3

rscott@spock.NMSU.Edu (Joseph Good) writes:

: I am currently writing a configuration program that will write
: a shell script, and I was just wondering which is the most popular.
: 
: It is pretty simple, and only executes command lines.
: Do all shell's execute command lines the same?

Today's answer is probably Bourne or, as it is called these days, System V
Shell.  Tomorrow's answer is Korn.  The good news is that Korn shell is
upward compatible with the Bourne shell.  And, for simple scripts with no
conditionals it doesn't matter anyway -- they are all the same.

I say this based on SSC's sales.  We publish pocket-sized references and
tutorials.  Sales on our Bourne shell tutorial have been pretty constant
for a few years.  Sales on our Korn shell reference has been picking up
recently.  Also, rumor is that Korn shell will be the default shell
for Solaris 2.0.
-- 
Phil Hughes, SSC, Inc. P.O. Box 55549, Seattle, WA 98155  (206)FOR-UNIX
>>> Publishers of pocket references for UNIX, C, VI, Emacs, Ksh, MS-DOS, ... <<<
     ...!ssc!fyl or fyl@ssc.com            (206)527-3385
From: osoelgaultier+@CMU.EDU (Stefan Monnier)
Newsgroups: comp.unix.questions
Subject: Login shell
Date: 8 Oct 92 18:36:59 GMT
Article-I.D.: andrew.AepD1=600VpQE0wV0G
Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA


How can I know in .cshrc if csh has been started as a login shell ?

	Stefan

-----------------------------------------------------
-- On the average, people seem to be acting normal --
-----------------------------------------------------
From: SCCS6075@bureau.ucc.ie (David O'Byrne)
Newsgroups: comp.unix.questions
Subject: can a files protection be set so that it is writeable but not
Date: 10 Oct 92 10:48:57 GMT

well the subject line says it all, I have an important document, that needs
modifying, but I also want to protect it against inadvertent deletion...

thanks

...david

----------------------------------------
David O'Byrne : sccs6075@iruccvax.ucc.ie
----------------------------------------
Newsgroups: comp.unix.questions
From: georgn@noweh.com (Georg S. Nikodym)
Subject: Re: Solbourne blues, in Boot minor
Keywords: boot solbourne
Organization: Noweh Software
Date: Fri, 9 Oct 1992 04:39:59 GMT

In article <2890@nlsun1.oracle.nl> rlyle@nl.oracle.com (The Wizard of Ozje - Garf) writes:
>Folks,
>
>I have inadvertently inserted an error in the bsh /etc/rc.boot script on my
>Solbourne portable Sun (Sparc inside).  Anybody any ideas about how I can fix
>the error short of reinstalling the whole thing again?  It boots into a bsh with
># prompt ofcourse, but there's nothing mounted so I can't run anything.  All the other rc scripts fall flat on their faces.  The root FS is mounted read-only,
>so I can't just stomp over it with echo in the shell.

Try booting with a "boot -s" command.  This will boot in single user and
hopefully not run any of the rc.* scripts.

Hope that helps...

-- 
Georg S. Nikodym  -  (416) 272-5198 / 720-4729
Noweh Software - Mississauga, Ontario, CANADA
UUCP:	{comspec.com, lsuc.on.ca, uunet.ca}!noweh!georgn
RFC822:	georgn@noweh.COM
Newsgroups: comp.unix.questions
From: erodrigu@dcc.uchile.cl (Eduardo Rodriguez)
Subject: Re: copying a file without login 
Originator: erodrigu@tortel
Date: Tue, 13 Oct 1992 13:08:29 GMT
Organization: Universidad de Chile, Depto. de Ciencias de la Computacion


In article <1992Oct11.055250.29460@cam.compserv.utas.edu.au>, mkwan@esk.compserv.utas.edu.au (Michael C. KWAN) writes:
> 	Can I copy a file from another account (under same host) without using
> ftp, rlogin (rhosts) ?  If I know the password of that account.
> 
> 	Thanks in advance.
> 
> 
> 						Michael 

You can use 'rcp' (read the man pages), but also you must modify
the .rhosts file of the user of the other account. (read the rsh
man pages).

edo...

Eduardo Rodriguez S        - --- - --- - --- -    erodrigu@dcc.uchile.cl
Dpto de Ciencias de la Computacion  - --- -    ...!uunet!uchdcc!erodrigu
Universidad de Chile   --- - --- - ---   erodrigu%uchdcc@uchcecvm.BITNET
- --- - --- - --- - --- - --- - --- - --- - --- - --- - --- - --- - --- 
Newsgroups: comp.unix.questions,comp.unix.programmer
From: umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor)
Subject: Any Good Book(s) about [Advance] "C" on Unix ?
Organization: University of Manitoba, Winnipeg, Canada
Date: Mon, 12 Oct 1992 07:05:23 GMT


Could someone please list a [few] good book[s] which discuss C programming
IN DEPTH on Unix system. I have just recently started to experiment with
C, but I am otherwise quite comfortable with programming. All introductory
or 'make yourself master' books on C really start from telling me what a 
computer and a byte is. Result is that about half of the book is of no use
and in this process I just cant learn. Also none of the books tell me the
advanced level C stuff and interfacing with operating system [Unix]
etc etc. What is your pick for a book in this "range"?

thanks.

--nasir
umnoor@ccu.umanitoba.ca
Newsgroups: comp.unix.questions
From: gordon@osiris.cso.uiuc.edu (John Gordon)
Subject: Re: BEGINNER Q.: redirection and awk?
Organization: University of Illinois at Urbana
Date: Thu, 8 Oct 1992 04:52:13 GMT
Keywords: cd,prompt,path,pwd

dcullen@eng.clemson.edu (david cullen) writes:

>I hate asking this, but i've forgotten how to do it in unix.

>How can I get my working directory to show up in my prompt?

	1) Set your prompt to have a pwd command embedded in it
	2) Alias 'cd' so that it re-sets your prompt to the new directory
	3) Also alias any other dir-changing commands, such as pushd, popd

Newsgroups: comp.unix.questions,comp.unix.admin
From: dlparker@dlpinc00.rn.com (David L. Parker)
Subject: Re: UnixWare from Univel
Organization: Automated Data Management Services
Date: Mon, 12 Oct 1992 13:53:49 GMT

In article <16044@umd5.umd.edu> cschang@hamlet.umd.edu (C. S. Chang) writes:
>
>Please provide me some information on UnixWare from Univel.  Such as
>how it work, it's requirement and how to get a beta testing system.
>
>Thanks in advance.
>

I'm pretty sure the beta test period is over.  It's being announced
today.  I think it's supposed to be shipping in about 2-4 weeks.  As
for how it works, very briefly, it's SVR4.2, basically in two versions:
a "personal edition" (PE), and an "application server".  The PE is a
single-user version with Novell NetWare client capabilities (ie, built-in
IPX/SPX).  Minimum requirements are 8MB RAM, 120MB HD, 20MHz 386SX.  It
will run stand-alone in 6MB with a 60MB HD on a 16MHz SX, but you won't 
be able to do much beyond boot the system.

The minimum recommended configuration for the Application Server is 12MB
RAM, 200MB HD, 33MHz 386SX.
-- 
Dave Parker
Automated Data Management Services, Pleasant Hill, MO 64080-1331
(816) 987-5167/5218 voice/fax
Newsgroups: comp.unix.questions
From: gordon@osiris.cso.uiuc.edu (John Gordon)
Subject: Re: A QUESTION
Organization: University of Illinois at Urbana
Date: Thu, 8 Oct 1992 04:56:50 GMT

csc5840@hertz.njit.edu (Sekhar Chitti) writes:

>Hi netters,

>I have a question on using 'sed' and 'awk' to edit a text file.
>I have a text file of nearly 500 lines and having 6 fields.
>Now that I wanna delete the last 5 fields of each line and 
>keep only the first one. What is the easiest way I can do this? 
>I am a bit familiar with sed and awk. But don't know exactly
>how I can use them to do this? Could anybody help me in this
>regard? Thanks.

	% cat datafile | awk '{print $1}'

	(Of course, this assumes that spaces are the field separator.  If
some other character is the field seperator, insert a -F<char> right after
the awk.)

---
John Gordon                        My incredibly witty saying has been 
gordon@osiris.cso.uiuc.edu         Politically Corrected into oblivion.
Newsgroups: comp.unix.questions
From: kessler@roses.Stanford.EDU (Will Kessler)
Subject: Converting from 9track to TK50 tapes
Organization: DSO, Stanford University
Date: Tue, 13 Oct 92 21:49:19 GMT

Hello All,

I've recently been given the unenviable task of converting CADAM
drawings stored in the "Nurestor" format, on 9track tape, to CADRA
drawings.  Unfortunately, the only 9track tape drive we have is on our
Sun3, and the CADRA tape reading program we purchased is only for our
decs.  So, what I was hoping to do was transfer the contents of the 9
track tape into a big binary file, copy the file to the decs, dump it
onto TK50 tapes from there, then run the tape reader/converter program
on the dec, using the TK50 drive.

I was trying to use "dd" on the sun to dump the contents of the tape
but it keeps giving "I/O error" after two records.  I'm not sure of
the block size or whether it's variable block size-- this may be the
origin of that problem.

What I'm hoping to find out is if anybody out there knows how to
better use dd for this purpose or can suggest some other strategy?

Thanks in advance,

Will Kessler
kessler@roses.stanford.edu
Rehabilition Research Division
Dept. of Veterans Affairs
3801 Miranda Avenue/153
Palo Alto, CA 93404-1200
(415) 493-5000 x4478 (w/v-mail) FAX (415) 493-4919

Seen on local vending machine:

  "Anti-theft device prevents obtaining free product."


-- 
Will Kessler
kessler@roses.stanford.edu
Rehabilition Research Division
Dept. of Veterans Affairs
3801 Miranda Avenue/153
Palo Alto, CA 93404-1200
(415) 493-5000 x4478 (w/v-mail) FAX (415) 493-4919

Seen on local vending machine:

Newsgroups: comp.unix.questions,comp.ultrix.questions
From: wessir@stein.u.washington.edu (Bill the CAT)
Subject: passing output of ftp site to shell
Keywords: shell, csh, scripts, ftp
Reply-To: wessir@u.washington.edu
Organization: University of Washington, Seattle
Date: Thu, 8 Oct 1992 03:16:33 GMT



Newsgroups: comp.unix.questions