HDTenEightyP/NetNews huggingface dataset:
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: deleting lines in vi
Originator: tchrist@pixel.convex.com
Keywords: vi, delete
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: CONVEX Realtime Development, Colorado Springs, CO
Date: Sat, 25 Jul 1992 13:42:19 GMT
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

From the keyboard of steven@Transact.COM (Steven List):
:When deleting, yanking, or otherwise modifying using movement commands,
:VI only works on whole lines.  

y3w seems to work for me.

--tom

-- 
    Tom Christiansen      tchrist@convex.com      convex!tchrist
    If you have ever seen the grim word "login:" on a screen, your mind
    is now a wholly-owned subsidiary of The Death Star.
                John Woods in <14105@ksr.com> of comp.unix.bsd
From: kuo_wy@jhunix.hcf.jhu.edu
Newsgroups: comp.unix.questions
Date: 18 Jul 92 01:54 MDT
Subject: Removing control codes, underscores
Nf-ID: #N:1992Jul17.215441.2717@jhunix.hcf:1752817653:001:1033
Nf-From: jhunix.hcf.jhu.edu!kuo_wy    Jul 18 01:54:00 1992


Hi.  I was wondering if anyone could help me with the following problem.
I'd like to be able to print a man file or ftp it do a Macintosh for
viewing.
Suppose I man command > temp
Then, lpr temp.
What I receive on the printout is, e.g.:
KKKKSSSSHHHH SSSSiiiilllliiiiccccoooonnnn
GGGGrrrraaaapppphhhhiiiiccccssss

_K_s_h_ is a...

and so on, if I did man ksh > temp.

If I ftp the file to a Mac, transferring it in ascii mode, and
view the file with Microsoft Word 4.0, I get the following:
K*K*K*K*S*S*S*S*...
and _*K_*s_*h...

and so forth, where * represents some unknown control character which
is the same for everything.

So, my question is how do I remove the repeated characters, the underscores
and the control codes?  I could always do a search and replace with
Microsoft Word or pg the file and cut and paste to an MS Word document,
 but as both of these solutions are rather tedious, I was wondering if
anyone could write a Korn shell script for me to do the job.

Please e-mail your reply, and thanks in advance.

Wilbur

Newsgroups: comp.unix.questions
From: etxmesa@eos.ericsson.se (Michael Salmon)
Subject: Re: introff, what is it?
Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
Organization: Ericsson Telecom AB
Date: Thu, 23 Jul 1992 08:48:37 GMT

In article <1992Jul18.041050.20922@uxa.ecn.b>, 
mudrc@uxa.ecn.bgu.edu writes:
|> 
|>  I'm trying to install a program and the manual is in this form:
|> 
|>      doc.me
|> 
|>  The notes say to do this to make the manual:
|> 
|>      introff -me  doc.me
|> 
|>  Is introff just a text formatting or compressing type command?  If so,
|> where could I find it to getthis program going?

introff is a specialized troff, the exact printer escapes me at
present. Just use whatever troff you normally use.

-- 

Michael Salmon

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

Ericsson Telecom AB
Stockholm
Newsgroups: comp.unix.questions
From: rages@pan.arc.nasa.gov (kathy rages)
Subject: Re: Redirecting the date as a file name
Keywords: date multiple-spaces
Organization: NASA-Ames Research Center
Date: Fri, 24 Jul 1992 21:23:58 GMT


In article <1992Jul24.073019.4230@ericsson.se> etxmesa@eos.ericsson.se (Michael Salmon) writes:
>
>From the man page for date:
>
[deleted]
>     encoded by %%.  All other characters are copied to the  out-
                      --------------------------------------------
>     put  without change.  The string is always terminated with a
      --------------------
>     new-line character.
>

This gives rise to a question, which I have yet to find an answer to.
How do you force the inclusion of two or more consecutive spaces in
a variable string?

% date +%h"  "%d
Jul  24
% set today = `date +%h"  "%d`
% echo $today
Jul 24

This has come up in several contexts for me, and I'd like to find out
if it's possible.  (The original context was creating a string to
search for in 'ls -l | grep $today' to find only the files modified
today.  If the day of the month has only one digit, ls puts in two
spaces.)
                                        Kathy Rages
Newsgroups: comp.unix.questions
From: ebuagu@ebu.ericsson.se (Anders Gustavsson 6421)
Subject: Exabyte (8mm) vs. DAT (4mm), advice needed
Keywords: Exabyte DAT backup-media
Reply-To: ebuagu@ebu.ericsson.se
Organization: Ericsson Business Communications, Inc.
Date: Tue, 28 Jul 1992 03:10:59 GMT

What are the pro's and con's of Exabyte (8mm) and DAT (4mm)
for use as backup device for a Sun SPARCserver??

I remember reading something about how different tape technologies
applied the tape in diffrent amount of degrees around the tape head.
DAT used the least number of degrees, compared with Sony 8mm and VHS,
and that then would qualify DAT for being the technology that wear out
the tape least frequently. (read this in a audio/video magazine)
If this is true does it then make the DAT tape technology more
reliable than 8mm Exabyte??

Anybody know anything about this, and/or have any experince??

Thank's in advance, I will summarize to the net if enough responses.

--Anders
---
Anders Gustavsson                    Internet : ebuagu@ebu.ericsson.se
Ericsson Business Communications     MEMO     : ERI.EBC.EBCAGUS (God forbid.)
525 N. Muller St.                    Voice    : +1 (714) 491-6421
Anaheim, CA 92803, USA               FAX      : +1 (714) 535-1789
From: tgtcmv@rw5.urc.tue.nl (Martien Verbruggen)
Newsgroups: comp.unix.questions
Subject: Re: .forward
Date: 23 Jul 92 09:33:30 GMT
Reply-To: tgtcmv@urc.tue.nl

ntucs73@csman.csie.ntu.edu.tw (CSIE 73 student) writes:

>Hi,
>    Is there anyone able to tell me the correct format about ".forward" file ?
>    I write a line in my local .forward as following :
>    
>     "| cat >> tmp "

>    But I found nothing happened.  IS something wrong with it ?

Nope, the format is OK. Didn't you get an error mail back from your mailing
system, telling you it couldn't create or access tmp. Well, the best way to use
such a pipe is to name all full path's. e.g.

"|/bin/cat>>/usr/mydir/tmp"

success
--
Martien Verbruggen
Eindhoven University of technology.
-- 
Martien Verbruggen (tgtcmv@chem.tue.nl)	| Chinese saying:
					| "He who speaks with forked tongue,
Eindhoven University of technology	|  doesn't need chopsticks"
Department of Chemical Engineering	|
From: guy@Auspex.COM (Guy Harris)
Newsgroups: comp.unix.questions
Subject: Re: need "ls"-like output w/full path
Date: 30 Jul 92 21:34:03 GMT
Organization: Auspex Systems, Santa Clara

>What does everyone have against:
>	find <dir> -print -path <dir> -only | sed 1d

	bootme$ find / -print -path / -only
	find: bad option -path
	Usage: find path-list predicate-list

Are "-path" and "-only" GNU "find"-isms?  If so, please bear in mind
that not everybody on the planet with a UNIX system has GNU "find" on
that system (you might claim that they *should*, but that does not alter
the fact that they *don't*).
Newsgroups: comp.unix.questions
From: govind@infonode.ingr.com (Govind Vadvadgi)
Subject: vi: How to type S and ^Q in ascii file?
Organization: Intergraph Corporation, Huntsville, AL.
Date: Wed, 22 Jul 1992 20:34:18 GMT

I was wondering if there is way to type Q ( Cntrl-Q ) and S ( Cntrl-S )
in an ascii file. ( I can type other charecters like , , etc. ) 

Thanks in advance.
-- 
-Govind.
 govind@infonode.ingr.com
Newsgroups: comp.unix.questions,comp.unix.shell,comp.unix.programmer
From: roy@zooks.eng.mcmaster.ca (Roy Underhill)
Subject: Which terminal gets console output?
Summary: How to find out?
Keywords: console, tty
Organization: Dept. of Mech. Eng., McMaster University
Date: Fri, 31 Jul 1992 16:05:06 GMT


	Here's a question that came up and I have not found any answer
for it.  If anyone knows, then would they be kind enough to post/mail
it?

	Users here has the title bar of terminal windows set up 
to show who they are, what host they is on and what directory they is in.  
Occasionally one starts up a new (pseudo) terminal and specifies that it 
is to receive the console output.  For such a terminal it is desired
that the title to be "CONSOLE" and never change.  That much is easy enough.  


	What is more difficult is for the previous console window (usually 
an xterm or xwsh) to detect that it no longer receives the console output so 
that it will revert to "ordinary" treatment of its title bar and no longer
proclaim that it is the console.  That part has me stymied at for the
present.  tty replies with ttyq?? rather than /dev/console.  ps will
tell you what shell is running in your window, but the command that
started that window is associated with whatever window you were in
when the command was issued.  The initial console window may not be associated
with any tty at all.  That is, ps provides ? for the tty.


	Any help would be appreciated.


Roy
-- 
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  Roy Underhill,  (416) 525-9140 x4395   roy@zooks.eng.mcmaster.ca 
  Department of Mechanical Engineering,  McMaster University, 
  Hamilton,  Ontario,  Canada            L8S 4L7
Newsgroups: comp.unix.questions
From: trice@bnr.ca (Tony Rice P885)
Subject: passing to an open TELNET session 
Keywords: telnet, UNIX, modem, script 
Organization: Bell-Northern Research, BNR-RTP 
Distribution: usa
Date: Wed, 29 Jul 1992 13:58:21 GMT


I am trying to automate something using telnet and am having troubles.

I would like to telnet to a modem hanging off of our LAN, dial a number
and hang up.  The problem is once I connect, using TELNET, to this modem
telnet goes into an interactive mode which makes things like:

cat "atdt 9,555121" | telnet <modem address>
or
telnet <modem address> < echo "atdt 9,5551212"

not work at all.  Even putting the connection command (open <modem address>)
a file with the atdt command and redirecting or piping that does not work.

Any ideas on how to pass stuff to an open telnet session?


-- 
/--------------------------------------------------------------------------\
|Tony Rice                              | Disclaimer: Opinions are my own  | 
|System Development Environment Support |             not that of BNR or   |
|BNR, Research Triangle Park            |             Northern Telecom     |
|                                 ______|______                            |
|internet: trice@bnr.ca           |"Go Hokies"|                            |
\--------------------------------------------------------------------------/
From: div@NAD.3Com.COM (Dinesh Venkatachalam x5498)
Newsgroups: comp.unix.questions
Subject: Good way to strip K&R Style comments
Date: 28 Jul 92 22:04:48 GMT
Reply-To: div@NAD.3Com.COM
Organization: 3Com Corp


I am looking for any way ( using awk, sed, perl, lex ) to strip K&R style
comments.
/* Start of comment till this 
    and on the next line */

The comments can span multiple lines, and I want this script to process the
input file and strip out everything including and between the /* and */

I would prefer the Regular-expression syntax in lex is such a solution exists

Thanks.

...Dinesh

Newsgroups: comp.unix.questions,comp.unix.shell
From: dwong@la.novell.com (T.David Wong)
Subject: ** Question for complex alias in csh ***
Followup-To: dwong@novell.com
Keywords: alias, csh
Reply-To: dwong@novell.com (T.David Wong)
Organization: Novell, Inc., San Jose, Ca
Date: Thu, 30 Jul 1992 17:46:50 GMT


#------- TzungHsing David Wong --- Novell Inc. ---     * 349 ** NTHU.EE82 *
 Internet:  dwong@novell.com                                  =====
 Uucp:      ...!uunet!novell.com!dwong                        ==!==
 Snail:     2180 Fortune Dr., San Jose, CA 95131, USA         =====
 Voice:     +1 408 473 8258
From: dmcco@ctp.com (David McCowan)
Newsgroups: comp.unix.questions
Subject: Migration to SysVR4 question?
Date: 20 Jul 92 21:43:23 GMT
Organization: Cambridge Technology Partners


Hi there,
  our site is migrating from SysV R 3.2 to SysV R4. I would
be interested in knowing the generic implementation differences 
between getty and ttymon? If you could e-mail me the answers
I would greatly appreciate it.

thanks
David McCowan
dmcco@ctp.com
Programmer at Cambridge at Technology Partners.
From: pfcouvar@amhux1.amherst.edu (Peter Couvares)
Newsgroups: comp.unix.questions
Subject: echoing control-characters from the command-line
Date: 21 Jul 92 23:48:31 GMT
Distribution: usa
Organization: Amherst College


	Is there any way (from the command-line) to produce the same output
as the following C program? (maybe with 'echo'?) :

main { printf("\027"); }

Thanks in advance for any help...

-Peter

pfcouvar@amhux1.amherst.edu (Peter Couvares)
Newsgroups: comp.unix.questions
From: manmetha@gauss.rutgers.edu (Rajesh Malhotra)
Newsgroups: comp.unix.questions,comp.unix.aix
Subject: Debugging Multiple Processes with dbx & xde
Keywords: multproc statement for dbx
Date: 29 Jul 92 21:08:51 GMT
Followup-To: comp.unix.questions
Organization: Rutgers Univ., New Brunswick, N.J.


Hi netters,
	How does one debug multiple processes using dbx or xde?
When I try enabling multiple processing using the multproc
command for dbx (in an X term) and xde, I get an error message
indicating that an internal multi processing mode cannot be
set.

	I have a parent process that forks a few children on an
IBM RS6000 AIX 3.2.1.  Are there any tricks I could use to debug
such an application (other than printfs in my code)?

	Any pointers or help would be appreciated.

Raj.
-- 
===============================================================================
Raj Malhotra.
(908)613 4313.

email : manmetha@gauss.rutgers.edu
===============================================================================
Newsgroups: comp.unix.questions
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: How do I convert a FILE* to an fd?
Originator: tchrist@convex.convex.com
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: CONVEX Realtime Development, Colorado Springs, CO
Date: Wed, 29 Jul 1992 23:39:48 GMT
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

From the keyboard of alan@dragon.acadiau.ca (Alan McKay):
:I have a file opened by fopen() and now want to flock it, but
:flock expects an fd as returned by "open".  Since the flocking is
:being added after my routine was written (long after), I don't want
:to re-write everthing to use open so I'd sooner just convert my
:FILE* to and fd if possible.  I'd image that the fd is just a field
:in the FILE*, is this correct?
:
:Can someone tell me how to do this?

RTFstdioM.

--tom
-- 
"GUIs normally make it simple to accomplish simple actions and impossible
to accomplish complex actions."   --Doug Gwyn  (22/Jun/91 in comp.unix.wizards)

     Tom Christiansen           tchrist@convex.com      convex!tchrist
Newsgroups: comp.unix.questions
From: trice@bnr.ca (Tony Rice P885)
Subject: umounting the unumountable disk (sing along!)
Keywords: umount, fileserver
Organization: Bell-Northern Research, BNR-RTP 
Date: Fri, 31 Jul 1992 18:17:33 GMT


I've got a system administration type problem here:

We are working with approx 24 workstations hanging off of each filesever
There are additional servers which contain the executables for some
inhouse tools which are mounted to the user's fileservers.  (whew!)

I need to unmount a disk which is currently mounted.  Sounds easy huh?  The
problem is that there is a user who is cd'd into the directory which I need
to umount or is running an executable out of this directory.

Question:

How do I either
a) find out who the user and ask them to quit out of the tool and cd out of
   the directory.
b) boot the user out

.... without rebooting the fileserver.




-- 

     ___________________________________________________________________
    /\        Bell Northern Research, Research Triangle Park, NC        \
    \_|             Systems Development Environment Support              |
      |                                                                  |  
      |    Tony R. Rice                    Opinions are my own, and do   |
      |    trice@bnr.ca                    not reflect those of BNR or	 |
      |    mrmidi@aol.com                  Northern Telecom              |
      |    ______________________________________________________________|____
      |   /                          "Go Hokies"                             /
       \_/__________________________________________________________________/



Newsgroups: comp.unix.questions
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: .forward
Originator: tchrist@pixel.convex.com
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: CONVEX Realtime Development, Colorado Springs, CO
Date: Sat, 25 Jul 1992 15:24:16 GMT
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.

From the keyboard of mjn@pseudo.uucp (Murray Nesbitt):
:
:rons@netcom.com (Ron Sires) writes:
:
:>ntucs73@csman.csie.ntu.edu.tw (CSIE 73 student) writes:
:
:>>Hi,
:>>   Is there anyone able to tell me the correct format about ".forward" file ?
:>>   
:>>    I write a line in my local .forward as following :
:>>    
:>>     "| cat >> tmp "
:>>
:>>    But I found nothing happened.  IS something wrong with it ?
:
:> When the .forward file is executed, there isn't a PATH variable defined.
:> This means that UNIX doesn't know where to look for the "cat" command.  Try
:> including the full path to cat and, while you're at it, the full path to
:> tmp, too.
:
:Uh...yeah.
:
:Unless a .forward file does something *drastically* different from
:when I last used one, it simply forwards mail to the account[s]
:specified in the file.  Thus an appropriate entry might be:

:    me@someother.machine

A .forward file can be used to direct things into a pipe on many systems.
You just have to remember that you won't have any decent environment 
set up for you, like cwd or envariables.

--tom

-- 
    Tom Christiansen      tchrist@convex.com      convex!tchrist

"The number of UNIX installations has grown to 10, with more expected."
    - _The UNIX Programmer's Manual_, Second Edition, June, 1972.
Newsgroups: comp.unix.questions,comp.unix.sysv386,comp.unix.programmer,comp.unix.wizards
From: wongm@latcs1.lat.oz.au (M.C Wong)
Newsgroups: comp.unix.questions,comp.unix.admin
Subject: sendmail.cf format
Date: 30 Jul 92 04:26:47 GMT
Organization: Comp Sci, La Trobe Uni, Australia
Originator: wongm@ipc5.lat.oz.au

Hi,
  I wonder if anyone out there knows how to interprete the file format and contents
of the /etc/sendmail.cf, also, if we are to use our own config file, we always end
up with permission denied to chdir into /usr/spool/mqueue. Why is it that ? And how
can we correctly set up a private sendmail.cf file ?


Thanks in advance!




- wongm@latcs1.lat.oz.au
From: sue@byron.u.washington.edu (Shu-Chen Eclipse)
Newsgroups: comp.unix.questions
Subject: question on "&"
Date: 28 Jul 92 07:34:03 GMT
Organization: University of Washington, Seattle

I'm a crass beginnier in unix: I know "&" means something like start a 
process running in the background, I guess, something like vms's "run/detached";while browsing through some scripts, I saw a line something like
(/../.../some file name &)&.

  what does the 2 "&" mean?
thanx in advance,
sue@byron.u.washington.edu
From: wilson@cs.utexas.edu (Paul Wilson)
Newsgroups: comp.unix.questions
Subject: memory aliasing---multiple mmap or shared segments?
Date: 23 Jul 1992 18:56:19 -0500
Organization: CS Dept, University of Texas at Austin
NNTP-Posting-Host: boogie.cs.utexas.edu

I need a way of aliasing a particular hunk of storage as four different
segments of virtual memory.  That is, I want to have several ranges
of virtual addresses, each of which is an alias for the same storage.

Ideally, I'd like this to be a coherently cached piece of virtual
memory, and I'd like it to be portable across major modern dialects of
UNIX, especially SVR4.

Does mmap give me the semantics I want?  Can I map several ranges
of addresses (in one address space) to the same file, and have it
work out right?

Do I need shared segments?  (I only need aliasing within one process'
virtual address space, not sharing between address spaces.)

Is SVR4 sophisticated enough to get this right?

By the way, I actually don't mind if I don't get cache coherency,
because I won't actually be accessing any particular hunk of memory
by more than one alias.  I'll only be using a quarter of each
virtual memory page, in a way that it maps to an otherwise unused
part of an actual page.   So while I want the pages aliased, I
will not actually be referring to data objects by more than
one alias.

Thanks in advance for any advice,

   Paul




-- 
| Paul R. Wilson                                    wilson@cs.utexas.edu      |
| U. of Texas Computer Sciences Dept.               voice: (512) 471-9555     |
| Taylor Hall 2.124, Austin, TX 78712-1188          fax:   (512) 471-8885     |
| "Inertia makes the world go 'round."                                        |
Newsgroups: comp.unix.questions,comp.unix.programmer
From: spencer@phoenix.Princeton.EDU (S. Spencer Sun)
Subject: Re: Making ``.plan'' EXECUTE a Program ???
Reply-To: spencer@phoenix.princeton.edu (S. Spencer Sun)
Organization: Live Organ Transplants
Date: Wed, 22 Jul 1992 15:02:39 GMT

In article <1992Jul22.124403.18751@math.waterloo.edu>, cpshelle@neumann.waterloo.edu (cameron shelley) writes:
>
>I have a piped .plan file, and a cron job that wakes up every morning
>to restart it if it's busted.

Great, but meanwhile finger will just sit there waiting any time someone
fingers you.

>It *is* in the "unix-faq" file, question 9.  Check out "news.answers"
>for a copy (anyone who wants it that is).  There was a program to
>construct a named pipe .plan posted in alt.sources a while back, so
>check out the archive in wuarchive.wustl.edu (or elsewhere) for
>article "4618.Z".  I don't have the source so please don't ask me for
>it... 

I thought it was slightly different from the question in the FAQ (by the
way, it's question 4.9...)

While the FAQ mentions that "If someone fingers you remotely it will be
a lot harder to figure out who it is" I don't think it addresses the
"What happens if your writer process dies" issue, or "What happens if
someone fingers you directly on a machine that mounts your home
directory"... in my experience, named pipes don't like to work too well
across NFS (SunOS 4.1.x).  We have lots of machines where your home
directory is the same directory on the same filesystem on all machines,
and if you cat into a named pipe on one machine and cat from it on
another machine, both processes just hang.

So, if the writer process is on machine 'foo' and I'm logged in to 'bar'
and I finger user@bar, it's going to hang.

None of which deals with the underlying question of motivation.  With
all due respect, I think there's an element of ego involved, "Aren't I
clever to have figured out that you fingered me" or else it's
paranoia, "Gosh, people could be fingering me AND I WON'T EVEN KNOW IT!"
What's so important about knowing who fingered you?

----------- The opinions expressed in this article are solely mine. -----------
<Insert lame attempt at disclaimer humor>
sss/PU'94 Dept of CS (spencer@phoenix.princeton.edu)/JvNCnet (spencer@jvnc.net)
"Was it a dream where you're in sort of sun-god robes, standing on a
pyramid, and thousands of naked women are screaming and throwing little
pickles at you?"  "No."  "Why am I the only one that has that dream?"

Newsgroups: comp.unix.questions,alt.books.technical,misc.books.technical,alt.books.reviews