HDTenEightyP/NetNews huggingface dataset:
From: kunkee@ferranti.com (randy kunkee)
Subject: Re: How to copy to another machine's /dev
Organization: Unix/Xenix Support Group
Date: Mon, 6 Apr 1992 14:44:48 GMT

In article <1992Apr2.161910.25457@prl.dec.com> boyd@prl.dec.com (Boyd Roberts) writes:
>In article <id.0KDO.4H6@ferranti.com>, peter@ferranti.com (Peter da Silva) writes:
>> I can "dd" right onto //ficc/dev/rmt0 from any node on our network, subject
>> to normal UNIX access protections.
>> 
>
>Yeah, but can you ioctl(2)?
>
>
>Boyd Roberts			boyd@prl.dec.com
>
>``When the going gets wierd, the weird turn pro...''

Yes.  For example, you can access a remote system's /dev/clock, and you
can change the tty modes of a remote terminal (//node/dev/tty*).  I can't
think of a case where a remote ioctl does *not* work, but they probably
exist.  Remote access to named pipes work.  The list seems to go on
and on.  Remote shared memory and semaphores do not work, but what would
you expect?

-- 
Randy Kunkee
Ferranti International Controls Corporation
12808 W. Airport Blvd.  Sugar Land, TX 77478
UUCP: uupsi!ficc!kunkee       ph: (713) 274-5132
INTERNET: kunkee@ferranti.com
From: limes@straylight.Eng.Sun.COM (Greg Limes)
Newsgroups: comp.unix.questions
Subject: Re: Text Formatting...(awkishly)
Date: 10 Apr 92 02:29:02 GMT
Organization: Sun Microsystems, Inc.
NNTP-Posting-Host: straylight

|  john@here.i.am: this a test
|  Bob_M@there.I.go: 		this a test
|  ME@HERE.UUCP:  this is not a test
|  jtice@nero.uvic.ca:    this might be a test
|  noone@uvicctr.uic.ca:                         this a test
|  you_too:     this a test of nuclear fission inside a tin can

|  I want it to look like this:

|  john@here.i.am:              this a test
|  Bob_M@there.I.go:            this a test
|  ME@HERE.UUCP:                this is not a test
|  jtice@nero.uvic.ca:          this might be a test
|  noone@uvicctr.uic.ca:        this a test
|  you_too:                     this a test of nuclear fission inside a tin can 

For berkloid hackers who know the left column is short enough,

	sed 's/:[ 	][ 	]*/:\t/' | expand -32

replace all "\t" with tabs. separates at the sequence "colon followed
by one or more blanks". assumes no other tabs in the incoming data.

    Before:

john@here.i.am: this a test
Bob_M@there.I.go: 		this a test
ME@HERE.UUCP:  this is not a test
jtice@nero.uvic.ca:    this might be a test
noone@uvicctr.uic.ca:                         this a test
you_too:     this a test of nuclear fission inside a tin can

    After:

john@here.i.am:                 this a test
Bob_M@there.I.go:               this a test
ME@HERE.UUCP:                   this is not a test
jtice@nero.uvic.ca:             this might be a test
noone@uvicctr.uic.ca:           this a test
you_too:                        this a test of nuclear fission inside a tin can
From: etxmesa@eos.ericsson.se (Michael Salmon)
Newsgroups: comp.unix.questions
Subject: Re: Identifying the presence of an NNTP Server
Keywords: NNTP email perl
Date: 6 Apr 92 10:51:46 GMT
Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
Organization: Ericsson Telecom AB

In article <1992Apr3.021255.7884@ucunix.san.uc.edu>, David M Kreindler writes:
|> I'm trying to get a perl script (aub v1.1) running which requires, as a
|> parameter, the full path name to the host machine's NNTP server.
|> 
|> Two questions:
|> 	i) What *is* the role of an NNTP server in the process of
|> 	collecting news articles?

The nntp server is the source of your news articles, the same way as a remote
machine is the source of files for ftp.

|> 	ii) How can tell if the machine I'm working on is running an
|> 	NNTP server or not?

Try telnet foobar 119 replacing foobar with a machine of your choice.
You can also look at your environment for $NNTPSERVER.

-- 

Michael Salmon

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

Ericsson Telecom AB
Stockholm
Newsgroups: comp.unix.questions
From: jacobsen@itexjct.jct.ac.il (Joel Jacobsen)
Subject: What is terminfo?
Organization: ITEX, Jerusalem, Israel
Date: 6 Apr 92 13:34:17 GMT

What is the terminfo, and how can I use it?
Can I use `set term' with a terminal specified at terminfo?

	Joel
	
Xref: sparky comp.unix.questions:5975 comp.unix.wizards:2127 comp.unix.sysv386:8304
From: jrd@cc.usu.edu
Newsgroups: comp.unix.questions,comp.unix.wizards,comp.unix.sysv386
Subject: Re: SVR4 network problem
Date: 8 Apr 92 02:34:54 GMT
Article-I.D.: cc.1992Apr7.203454.54287
Organization: Utah State University

In article <gram.702574031@uctcs>, gram@uctcs.cs.uct.ac.za (Graham Wheeler) 
writes:
 
> I have a problem with Dell SVR4 that probably has a trivial solution
> lurking somewhere. It seems to be a Streams problem, or possibly due
> to the change in network daemon structure between V3 and V4.
> 
> Basically, any operation which involves opening some form of network connection
> is extremely slow. This includes telnet (takes about two minutes for login
> prompt), netstat (can take up to ten minutes), and any forking of X clients.
> Once a connection is established, performance is fine. 
	<gory details omitted>

	I can't offer an immediate suggestion beyond the obvious of a systems
configuration problem. Running Dell's SVR4 beta v4 here with the stock TCP/IP
material is very crisp, with none of the delays you experience. The only time
I do see delays is doing  netstat -r  and the system defaults to showing me
names rather than just IP numbers; that takes DNS lookup time. I have a WD
8013 board in the 386-33 (Adaptec 1542B too, etc). One thing I could suggest
is checking that video board to see if you have 8 vs 16 bit bus access 
problems, and the Ethernet board to see if it's IRQ setting is ok.
	Joe D.
From: thoth@reef.cis.ufl.edu (Robert Forsman)
Newsgroups: comp.unix.questions
Subject: does getwd perform a little magic or what?
Date: 6 Apr 92 00:15:10 GMT
Article-I.D.: reef.THOTH.92Apr5201510
Distribution: comp
Organization: Zik Zak


  This isn't mentioned in the FAQ, but it probably should fit in
section 3 or 4.

  How does getwd work?  I have a path which has traveled down a
symlink and now I want to find out where it really is.  The only thing
I can think of is to stat("..",&buf) and stat all directory entries in
.. (another diropen(3)) until you find one that matches the st_dev and
st_ino of ".".  This could be pretty heinously expensive, you know,
because you have to run all the way up to the root directory.

  Note, I don't want to find my current working directory, I want to
find the hard path to ANY directory (otherwise I'd use getwd()) I
don't want to cd there either, but I will if it's more efficient.

  I've already squished the dir/.. removal problem (took me 58 lines,
ugh), and now I want to find the real path to wherever/symlink/.  Once
I've got that I can tackle the ~user expansion problem.

  Does someone have the secret speedy getwd technique that they can
transmit to me?  Please mail.  I don't read this group regularly and
it expires in ~2 days.
--
I deal with Reality as you _don't_ understand it. 
blah = realloc(blah, sizeof(*blah)*(blahsize*=2)); /* (TM) */
From: lwall@netlabs.com (Larry Wall)
Newsgroups: comp.unix.questions
Subject: Re: formatting/aligning text (awk? printf? huh?)
Date: 9 Apr 92 16:59:40 GMT
Distribution: na
Organization: NetLabs, Inc.

In article <4848@nntp_server.ems.cdc.com> mrt@ems.cdc.com writes:
: In article <1992Apr7.195014.774@iWarp.intel.com>, merlyn@iWarp.intel.com (Randal L. Schwartz) writes:
: |> In article <odsT9Se00awV4XpYNT@andrew.cmu.edu>, vs0r+@andrew (Victor Dmitri Schoeman) writes:
: |> | awk '{printf $1} {for (i=length($1);i<=28;i++) printf " "} {for (i=2;i<=NF;i++) printf $i" "} {printf "\n"}' file
: |> 
: |> Or perl -pe 's/^(\S+)\s+/sprintf("%-28s",$1)/e' file
: |> 
: |> This is one of those places where even a simple awk one-liner looks rough.
: |> 
: |> print "Just another Perl hacker,"
: |> -- 
: |> /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
: |> | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
: |> | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
: |> \=Cute Quote: "Intel: putting the 'backward' in 'backward compatible'..."====/
: If you want it too look less "rough":
: 
: awk -F: '{sub(/^[\t ]*/,"",$2);printf("%-29s%s\n",$1,$2)}' file

$ awk -F: '{sub(/^[\t ]*/,"",$2);printf("%-29s%s\n",$1,$2)}'
awk: syntax error near line 1
awk: illegal statement near line 1
$

Hmm, still looks a little rough on my machine.  :-)

It also doesn't put the colon back, but that's a trivial fix.

As I originally wrote to the questioner (he did ask for mail, didn't he?)
one very concise Perl solution (ties with Randal's) is

	perl -ne 'printf("%-29s%s",/^(\S+)\s+(.*)/)'

though on second thought,

	perl -pe 's/\s+/' 'x (29-length($`))/e'

is even shorter.  But there's more than one way to do it, not all of
which require Perl.

Larry
Newsgroups: comp.unix.questions
From: sss@netcom.com (Small Systems Solutions)
Subject: Re: what happened to ftp.uu.net?
Date: Wed, 08 Apr 92 00:43:30 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

In article <29942@adm.brl.mil> COTRCSBK@sea04vm.navsea.navy.mil (Stephen B. Kutzer) writes:
>
>Not completely germane to UNIX, but does anyone know what happened
>at ftp.uu.net?  I used to be able to anonymous ftp to this site.  Now,
>all I ever get is anonymous logon rejected.  Any ideas?

Try using a login of 'ftp' and a password of COTRCSBK@sea04vm.navsea.navy.mil.

-- 
Small Systems Solutions                   1563 Solano Avenue, Suite 123
sss@netcom.com                                  Berkeley, CA 94707-2116

The above-expressed opinions aren't necessarily
From: COTRCSBK@sea04vm.navsea.navy.mil (Stephen B. Kutzer)
Newsgroups: comp.unix.questions
Subject: MIPS, Specmarks, etc.
Date: 6 Apr 92 16:58:48 GMT
Article-I.D.: adm.29923


  I  am  looking  for  any  free,  published,  and  fairly  current
  performance comparisons  of various workstation  platforms (RISC,
  i486,  etc.) I  am  aware of  all the  pitfalls  in taking  these
  numbers too seriously (e.g.  MIPS = meaningless indicators of the
  performance  of  systems),  but  would still  find  value  in  an
  independently  conducted comparison  of systems.   All I  usually
  manage  to come  up with  is company  xyz's published  results of
  tests done by lab  qrx.  I don't know if xyz owns  qrx or much of
  anything  about the  actual tests  conducted.  I  am looking  for
  something less biased and more meaningful.

  Many thanks,

Stephen B. Kutzer  703-769-2900
I-NET, Inc.        cotrcsbk@sea04vm.navsea.navy.mil
From: ce1zztw@prism.gatech.EDU (Tommy Barr)
Newsgroups: git.unix.questions,comp.unix.questions
Subject: Borne Shell problem with "while read".
Date: 8 Apr 92 02:04:51 GMT
Followup-To: ce1zztw@prism.gatech.edu
Organization: Georgia Institute of Technology


 Hello, I am experiencing a small problem with a while-do loop
 I am running under the borne shell and have the same problem
 on both an RS6000 and Sun.  The rs is AIX 3007 and the Sun
 is at 4.2 BSD.  The problem is that a counter (j) within the
 loop looses its value after the done statement.

 Thanks for any assistance.

 Tommy Barr       ce1zztw@prism.gatech.edu


 Example script and input follow:


 ----------Script begin---------
 #!/bin/sh
 j=0  
 #
 cat testin | while read strng 
 do
   j=`expr $j + 1`
   echo $j $strng
 done
 #
 echo "and j is $j"
 
 ---------Input-------------------
aone
atwo
anathree
 ---------End-------

-- 

Tommy Barr (404)894-2260           ce1zztw@prism.gatech.edu
From: btwomey@cbnewsj.cb.att.com (william.tw0mey)
Newsgroups: comp.unix.questions
Subject: Re: formatting/aligning text (awk? printf? huh?)
Date: 8 Apr 92 13:28:12 GMT
Distribution: na
Organization: AT&T

In article <1992Apr7.195014.774@iWarp.intel.com> merlyn@iWarp.intel.com (Randal L. Schwartz) writes:
>In article <odsT9Se00awV4XpYNT@andrew.cmu.edu>, vs0r+@andrew (Victor Dmitri Schoeman) writes:
>| awk '{printf $1} {for (i=length($1);i<=28;i++) printf " "} {for (i=2;i<=NF;i++) printf $i" "} {printf "\n"}' file
>
>Or perl -pe 's/^(\S+)\s+/sprintf("%-28s",$1)/e' file
>
>This is one of those places where even a simple awk one-liner looks rough.

Err, the above awk script looks less than optimal.

Try
awk '{ printf(%-28s", $1) ; $1="" ; print }'
or
awk '{ print substr($1 "                            ", 1, 28) ; $1="" ; print }'


The first script is maybe 3% faster than the second. The original
script runs about four times slower than these two on an HP9000.
You can sneak your field separator into the printf or the blanks string
if you want your output to look more like the input.

Bill Twomey
bt@violin.att.com
From: doug@bcsfse.boeing.com (Doug Johnson)
Newsgroups: comp.unix.questions
Subject: Re: Substituting words in vi
Date: 10 Apr 92 19:38:56 GMT
Organization: Boeing Computer Services, FSE, Bellevue WA

In article <1992Apr9.012945.17804@u.washington.edu>, payman@hardy.u.washington.edu (Payman Arabshahi) writes:
|> 
|> Does anybody know how to substitute something like
|>   \index{hello}
|> 
|> for the word
|>    hello
|> 
|> everywhere it appears in a document, using the vi
|> editor or EMACS?
|> 
|> I am in the process of creating an index for a book
|> written in LaTeX.   This requires labeling each index
|> word as described above.
|> 
|> Any help will be GREATLY appreciated!
|> 
|> Many thanks,
|> 
|> payman


This will work entering the command from the colon prompt in vi:

      :$s/\<hello\>/\\index{hello}/g
From: subbarao@phoenix.Princeton.EDU (Kartik Subbarao)
Newsgroups: comp.unix.questions
Subject: Re: Substituting words in vi
Date: 9 Apr 92 14:55:10 GMT
Article-I.D.: Princeto.1992Apr9.145510.18522
Organization: putchar('I'); for (i = 0; i < 3; i++) putchar('E');

In article <1992Apr9.012945.17804@u.washington.edu> payman@u.washington.edu writes:
>
>Does anybody know how to substitute something like
>  \index{hello}
>
>for the word
>   hello
>
>everywhere it appears in a document, using the vi
>editor or EMACS?

In vi:

:%s/\\index{\(.*\)}/\1

In emacs:

M-x replace-regexp

When it prompts for Replace regexp: type this:

\\index{\(.*\)}

When it prompts for with: type this:

\1

>I am in the process of creating an index for a book
>written in LaTeX.   This requires labeling each index
>word as described above.

This regexp will replace every occurrence of \index{foobar} with foobar.

	-Kartik
From: moconnor@pms704.pms.ford.com (Mike O'Connor)
Newsgroups: comp.unix.questions
Subject: Re: OSF/1 vs SVR4 (and others)
Date: 13 Apr 92 20:01:20 GMT
Reply-To: Mike O'Connor <mjo@fmsrl7.srl.ford.com>
Organization: "Fordz"
X-Disclaimer: Not an official spokesperson for Ford Motor Co.

In article <1992Apr13.125257.28392@decvax.dec.com> evans@zk3.DEC.COM writes:

:|> Since
:|> their OSF/1 isn't mainstream production, this makes the table look a
:|> bit skewed.  (In particular, I'd love to see the apps available for
:|> DEC's OSF :).)
:
:I guess that this depends upon the definition of "mainstream production".

Basically, OSF/1 1.0 is hyped by DEC as "the first step in making the
transition into OSF".  (Quote from a DEC rep) From what I gather, the
primary purchasers are ISVs, and most everyone buying Unix from DEC is
buying Ultrix, not OSF/1 1.0.  

:I will work on getting the list of apps. I expect this to be quite long,
:as DEC OSF/1 provides binary (executable/data) compatability with Ultrix
:4.2* and therefore the vast majority of the products that exist on Ultrix
:4.2* are usable out-of-the-box on DEC OSF/1.

I didn't know about the compatibility factor -- I presume this would
be for people running OSF/1 on MIPS as opposed to Alpha.

Compatibility is nice, but I am speaking of apps built with OSF/1 FOR
OSF/1.  On an Intel 486/50 running DOS, I can certainly run all those
apps that run on an 8088, but they're not taking advantage of the
capabilities in the 486/50.  Same with HP-UX 8.0 being able to run
most apps from HP-UX 7.0, which didn't have shared libraries and did
all sorts of things wrong.

:|> AIX is up to 3.2, which has added functionality.  Also, did "Display
:|> PostScript" or the like appear on here (since I'm thinking IBM)?
:
:If PostScript is important to you, then you will be  glad to hear that
:the X server that is provided with DEC OSF/1 provides the Adobe DPS
:extension. This provides for PostScript in the X server and is used by
:programs like the dxpsview (a PostScript file viewer).

It was brought up in passing...  sounds good.

:|> :Available                       now     now     now     now     now
:|> :OS
:|> :  Kernel base                   OSF/1   BSD     BSD     AIX     SVR4
:|> 
:|> Why not just say "Mach" for OSF/1?
:
:Because the kernel (as supplied by the OSF) has been modified to the point
:that it is clearly not all Mach 2.*. Rather then having people think that

I understand that.  Likewise, HP's kernel is not all BSD, with the
System V muck that they retrofit in.  I was referring to "base" and it
struck me that "Mach" fit in as a "base" better than OSF/1.

						...Mike

-- 
 Mike O'Connor                     |  Ford Motor Company, USA
 Applications Systems Analyst      |  CPD P&MS ECC Core Software
 Phone #:  +1 (313) 390-4008       |  P.O. Box 2053, ECC MD-7
 Fax #:    +1 (313) 845-0576       |  Dearborn, MI  48121-2053
From: bm@bike2work.Eng.Sun.COM
Newsgroups: comp.unix.questions
Subject: pointer range-checking
Date: 17 Apr 92 18:40:53 GMT
Reply-To: bm@bike2work.Eng.Sun.COM ()
Organization: Sun Microsystems, Inc.  Mt. View, Ca.
NNTP-Posting-Host: bike2work

Is there a way to test a pointer to see whether it falls
within your current segement, so you can avoid segmentation
faults by not using out-of-range pointers?

Bill

--
Bill Michel			
bm@eng.sun.com		These views are my own, not Sun's.
Newsgroups: comp.unix.questions
From: moconnor@ef2007.efhd.ford.com (Mike O'Connor)
Subject: Re: X remote display failure
Reply-To: Mike O'Connor <mjo@fmsrl7.srl.ford.com>
Organization: "Fordz"
Disclaimer: Not an official spokesperson for Ford Motor Co.
Date: Wed, 15 Apr 1992 13:07:27 GMT

In article <40712862@bfmny0.BFM.COM> tneff@bfmny0.bfm.com (Tom Neff) writes:
:My box is 'fred', the other is 'wilma'.  When I go
:
:	[fred==>] xlogo -display wilma:0
:
:I get this error message:
:
:	Cannot create address for system wilma

Try doing this with the IP address rather than the hostname.


-- 
 Mike O'Connor                     |  Ford Motor Company, USA
 Applications Systems Analyst      |  CPD P&MS ECC Core Software
 Phone #:  +1 (313) 390-4008       |  P.O. Box 2053, ECC MD-7
 Fax #:    +1 (313) 845-0576       |  Dearborn, MI  48121-2053
From: akoifman@BBN.COM (Alex Koifman)
Newsgroups: comp.unix.questions
Subject: Multiple IP addresses for an Ethernet interface?
Date: 7 Apr 1992 21:34:05 GMT
Organization: Bolt Beranek and Newman Inc., Cambridge MA
Distribution: ne
Reply-To: akoifman@BBN.COM (Alex Koifman)
NNTP-Posting-Host: bbn.com

Hi,

How can I define multiple IP addresses for an Ethernet interface?
I want to have multiple sockets for each IP address and be able to receive/
send to these pseudo IP addresses on one physical Ethernet interface.
I am running a SunOS Release 4.1.1 on a Sun-Sparc IPC.

Thanks a lot,

Alex Koifman
From: tneff@bfmny0.BFM.COM (Tom Neff)
Newsgroups: comp.unix.questions
Subject: X remote display failure
Date: 13 Apr 92 01:16:44 GMT
Reply-To: tneff@bfmny0.bfm.com (Tom Neff)

Please, will one of you smarties help me.  I've asked twice in two
different places, but I think people are skimming.

I have a network of ISC 3.0 boxes talking TCP.  I can't run an X client
(say, xload) on my workstation and redirect the output to another box's
display.  BUT he can do it to mine OK.  Everyone can telnet, ping and
rsh each other just fine.  RFS file sharing too.  Just this one problem.
My box is 'fred', the other is 'wilma'.  When I go

	[fred==>] xlogo -display wilma:0

I get this error message:

	Cannot create address for system wilma

which is also what I get if I say '-display slkdfjsldfjsdf' or similar
garbage.  Whereas if (from fred) I say '-display fred:0' or '-display
local:0' I get the logo (on my own box), no problem.  Similarly if I go
over to 'wilma' and there type

	[fred==>] xlogo -display wilma:0

it DOES successfully display remotely on my box.  Weird.

What could be wrong?  Everyone is in everyone's /etc/hosts; they'd have
to be, or I couldn't telnet all around.  It's as though my box doesn't
even want to LOOK there when it's time to establish an X connection.
What do I look for?
From: bruce@blilly.UUCP (Bruce Lilly)
Newsgroups: comp.unix.questions
Subject: Re: grep question
Date: 6 Apr 92 00:39:54 GMT
Organization: Bruce Lilly

In article <1992Mar30.193911.13317@athena.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) wrote:
>In article <1992Mar19.212645.18775@pool.info.sunyit.edu>, buck@pool.info.sunyit.edu (Jesse Buckley) writes:
>|> Or you could use this:
>|> 
>|> grep -v '^Newsgroups:|^Organization:|^Message-Id:' in > out
>
>Actually, he would have to use "egrep", not "grep", because "grep" on most
>systems (unless it has been replaced with GNU grep, of course :-) does not
>understand '|'.

The smiley should probably be :-(, since -v doesn't work
properly with GNU grep/egrep.

-- 
	Bruce Lilly		blilly!bruce@Broadcast.Sony.COM
					...uunet!sonyusa!sonyd1!blilly!bruce
From: khaw@parcplace.com (Mike Khaw)
Newsgroups: comp.unix.questions
Subject: Re: what happened to ftp.uu.net?
Date: 9 Apr 92 18:29:34 GMT

In <peter.702772068@auad> peter@auad.acadiau.ca (Peter Steele) writes:

>>>Not completely germane to UNIX, but does anyone know what happened
>>>at ftp.uu.net?  I used to be able to anonymous ftp to this site.  Now,
>>>all I ever get is anonymous logon rejected.  Any ideas?

>>  It is high time you started using a nameserver, instead of relying on
>>an out-of-date /etc/hosts file.  The address has changed, and you haven't
>>kept your data up to date.

>I *do* use a nameserver and have also got this error.... ????

ftp.uu.net is no longer accepting connections from machines that don't
report their hostname in fully-qualified-domain form. ftp.uu.net used to
print a message about that before dropping the connection, but apparently
it no longer does that.
--
Michael Khaw	Domain=khaw@parcplace.com, UUCP=...!uunet!parcplace!khaw
ParcPlace Systems, Mountain View, CA	PRODUCT INFO: info@parcplace.com
Newsgroups: comp.unix.questions
From: mjo@hal.gnu.ai.mit.edu (Mike O'Connor)
Subject: Re: Will the /etc/aliases file do what I need?
Reply-To: Mike O'Connor <mjo@fmsrl7.srl.ford.com>
Organization: "Fordz"
Distribution: usa
Date: Thu, 16 Apr 1992 02:55:32 GMT

In article <1992Apr13.224536.25776@ux1.cso.uiuc.edu>
dsdg7102@uxa.cso.uiuc.edu (Dane Steven Dwyer) writes:

:I need to completely remove the sun3/50 from the system.  How can I
:force the server to intercept all mail destined for the machine
:that no longer exists and forward it elsewhere.  I have experimented

If possible, set up an MX record such that email sent to the Sun 3/50
goes elsewhere.  Then, be sure that "elsewhere" knows how to handle
email sent to user@Sun3/50 and you should be all set.



-- 
 Mike O'Connor                     |  Ford Motor Company, USA
 Applications Systems Analyst      |  CPD P&MS ECC Core Software
 Phone #:  +1 (313) 390-4008       |  P.O. Box 2053, ECC MD-7
 Fax #:    +1 (313) 845-0576       |  Dearborn, MI  48121-2053
Newsgroups: comp.unix.questions
From: rouben@math9.math.umbc.edu (Rouben Rostamian)
Subject: Re: HOw to trim off spaces from the file name
Organization: University of Maryland Baltimore Campus, Academic Computing Services
Date: Wed, 8 Apr 1992 17:38:36 GMT

In article <73234@netnews.upenn.edu> matsuda@linc.cis.upenn.edu (N o s t a l g i a) writes:
>I erronously made hundreds of files with white spaces after each of the file
>name.  And this led me to a question:  Is there any sh command to trim off
>white spaces from a string?  

Use basename(1) to trim the trailing space in filenames.  
In csh:

foreach filename (*)
mv "$filename" `basename "$filename" \ `
end

In sh:

for filename in *
do
mv "$filename" `basename "$filename" \ `
done

Substitute other wildcards for * as needed.

--