HDTenEightyP/NetNews huggingface dataset:
From: briggs@csugrad.cs.vt.edu (Allen Briggs)
Newsgroups: comp.unix.aux
Subject: Re: Configure Sendmail for local mail
Date: 16 Sep 92 00:17:39 GMT
Organization: Virginia Tech Computer Science Dept, Blacksburg, VA

In article <1992Sep15.212628.24764@massey.ac.nz> R.Singh@massey.ac.nz (R. Singh) writes:
>I can use sendmail for sending mail to the internet, but sending it to a
>local user on the machine is rejected with
>
>RSingh... User unknown: Not a typewriter
>
>Can't seem to figure out what I am doing wrong. Any help.

I seem to remember that capital letters aren't supported for local
users--in fact, I believe that addresses are supposed to be case-
insensitive.  Try sending it to an ID that's all lowercase.  That really
isn't a good error message!  Why ENOTTY?

-allen
-- 
Allen Briggs          \ My eyes have seen you/Free from diguise
briggs@csugrad.cs.vt.edu | Gazing on a city under/Television skies.
Computer Science      / My eyes have seen you/Let them photograph your soul
Virginia Tech      / Memorize your alleys/On an endless roll. (The Doors)
Newsgroups: comp.unix.aux
From: ejbehr@rs6000.cmp.ilstu.edu (Eric Behr)
Subject: User limit under A/UX (and weird ps)
Date: Mon, 07 Sep 1992 02:38:44 GMT
Reply-To: behr@math.ilstu.edu (Eric Behr)
Organization: Central Illinois Surfing Club

I noticed that our Higher Ed. price list has an "A/UX 32 User License
Product" which "allows expansion from 16 up to 32 users on a single CPU".
I've never had more than 5-6 concurrent logins, and I doubt if my little
IIsi would be happy with more than 16, but just out of curiosity: is it
programmed in? How come it doesn't say so in any manual I've read?

Another question: since upgrading to 3.0 ps in csh seems to be broken --
without options, it only prints the header. Something like ps -ef still
works fine, but when I want to see just my processes, it doesn't show
anything... Is this a feature? Sorry if it's in FAQ -- I must have missed
it.

-- 
Eric Behr, Illinois State University, Mathematics Department
behr@math.ilstu.edu   or   behr@ilstu.bitnet  (please avoid!)
Xref: sparky comp.unix.aux:3473 comp.sys.mac.apps:14577
From: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
Newsgroups: comp.unix.aux,comp.sys.mac.apps
Subject: Re: Installing Mac Applications under A/UX
Date: 15 Sep 92 10:15:51 GMT
Reply-To: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
Organization: NASA/Goddard Space Flight Center

khj@cs.appstate.edu (Kenneth Jacker) writes:

>I just tried installing a new version of Word (no flames, please!) on
>my updated A/UX 3.0 system.  Though I had my doubts ("which System
>Folder will it try to access?  My personal one, I hoped ..."), I went
>ahead and "double clicked" on the "Word Installer" icon.

>Though it began "almost normally", things got ugly fast.  I decided to
>abort the install and check others' experience and wisdom.

>So, how do I install something like Now Utilities, MS Word, MathType
>(that needs to add fonts to *some* System file), and other applications
>into a Un*x file system (*not* a MacOS file system) while remaining
>under A/UX?  Most of these new apps no longer use a "drag this there,
>and drag that there" installation approach.  Instead, they use the
>fancy Apple Installer program (Word uses v3.3) ...

>I've got a "dinky" MacOS file system that I could temporarily install
>things in.  But, it would probably install resources in *its* System
>file, not my personal one.  It would be an error-prone process trying
>to find what else it did (e.g., creation of Preferences, Translators,
>...  folders).

This is a pain in many cases. However, most of the time the manual _will_
have some guidelines concerning "manual installation".

For MSWord, put MT Extra in your A/UX System file, MT Ext in Extensions
and Embedding Prefs in Preferences. For Now Utilities, I'd suggest just using
the utilities that you can drag copy (Like Alarms, or whatever it's called).
The ones that use CE Toolbox don't seem to work under A/UX.
-- 
    Jim Jagielski               | "This is supposed to be a happy occasion.
    jim@jagubox.gsfc.nasa.gov   |  Let's not bicker and argue about who
    NASA/GSFC, Code 734.4       |  killed who."
    Greenbelt, MD 20771         |
Newsgroups: comp.unix.shell
From: W10075@maccvm.corp.mot.com (Stephen Weet)
Subject: Re: Substring of a file name
Organization: Motorola
Date: 11 Sep 1992 03:42:46 CDT

------------------------- Original Article -------------------------
From: urs@carp.cis.ufl.edu (Uppili Srinivasan)
Newsgroups: comp.unix.shell
Subject: Substring of a file name
Date: 10 Sep 92 15:15:41 GMT
Distribution: usa
Organization: Univ. of Florida CIS Dept.

Hi,

I need to write a script to read a substring of some of the filenames

in a directory. (i.e) if xy1992 is the name i need to read the last four

letters only. I guess 'awk' is ideal for this . But I am curious to

know the other ways of doing this.


Thanx in advance

My e-mail address : urs@carp.cis.ufl.edu
------------------------------------------------------------------------

If you know the length of the filename in advance you can use the cut
command e.g     echo filename | cut -c5-8  will give you columns
5 to 8.

   If you do not know the length of the filename or if there is no
   pattern you can go to awk (Probably the easiest) or try this :-


        FLENGTH=`echo $filename |wc -l`
        echo $filename | cut -c`expr $FL - 4 `-`expr $FL - 1 `

   BEWARE :- Make sure all the spaces are in around expr's operatiors.








Newsgroups: comp.unix.shell
From: pdel@ADS.COM (Peter Delevoryas)
Subject: Re: Octal chmod status(or began that way)
Organization: Advanced Decision Systems, Mtn. View, CA (415)960-7300
Date: Tue, 8 Sep 1992 07:39:13 GMT


>   >:Please excuse my ignorance but is perl a shell ????? is this not
>   >:comp.unix.shell ?? I may be wrong but *who* want to be pestered with
>   >:perl tidbits ?? 

I do!! I want all the pestering anyone will post! I'm a dope trying to
learn sysadmin, and believe me, I need all the help I can get.

Hopefully this group is not only for geniuses.

Please don't discourage people from posting scripts, etc.

PD



--

 login name:   L1-A                      
 In real life: Peter Delevoryas
 In any other life: a cheap imitation
Newsgroups: comp.unix.shell
From: space%bnr.ca (Scott Pace)
Subject: Re: KSH: how to stop $ENV
Organization: Bell-Northern Research, Ottawa, Canada
X-Newsreader: Tin 1.1 PL5
Date: Fri, 11 Sep 1992 17:53:18 GMT

Donn Cave (donn@carson.u.washington.edu) wrote:
: space%bnr.ca (Scott Pace) writes:
: 
: | I have a shell script written in ksh (i.e. has #! /bin/ksh at the start).
: | How do I prevent the ksh from executing $ENV?  This is on HP-UX 7.05.  I
: | have read the man page, and I don't see any switches that would do this.
: | What I really want is the equivalent of the -f switch in the csh.
: 
: #!/bin/ksh -p
: 
: But, don't be surprised if it doesn't work!  It works on some Korn shells,
: not others.  It's generally not documented, may be obsolete.  I'd like to
: know - I think it's a valuable feature.  (It's not the same as expecting your
: users to use the bizarre interactive-only formula for ENV.)
: 

But I can't use -p since it clobbers the $PATH variable, and I need that to
be kept intact.

--
Scott Pace, Bell Northern Research, Ottawa, Canada, (613) 765-2631
space@bnr.ca - the final frontier  DoD# 850 - KotBTT, KotBP, KotIQ
Newsgroups: comp.unix.shell
From: tinsel@uiuc.edu (Thomas Aaron Insel)
Subject: Re: TCSH and FTP
Originator: tai50080@uxa.cso.uiuc.edu
Reply-To: tinsel@uiuc.edu
Organization: Illini Mastication Society
Date: Tue, 15 Sep 1992 17:54:42 GMT

Naseer Khan <khan@us17501.mdc.com> writes:

> A while back, just as I was starting to learn about TCSH, someone was
> discussing the effects of changing one's default login shell and how
> FTP daemon reacted to this.  I think the important point was that we
> had to let it know about the new shell (and also about the old ones)
> in a config file of sorts.  Could that someone or anyone who can help
> please tell me how to do this exactly.  I didn't realize at the time
> that this would affect me, but now that I have gotten TCSH (6.02) and
> have it as my login shell, FTP won't let me in from outside 'cause it
> doesn't know my shell.  Thanks in advance. :)

If, by some method, you change your shell to a program not listed in
the file /etc/shells, ftpd won't let you connect.  Most systems won't
let you set your shell to one that isn't listed, but evidently you
managed.
-- 
Thomas Aaron Insel (tinsel@uiuc.edu)
  "We must not confuse dissent with disloyalty." -- Edward R. Murrow
Newsgroups: comp.unix.shell
From: messina@netcom.com (Tony Porczyk)
Subject: Re: Help: How to exit from two shells?
Date: Wed, 16 Sep 92 03:52:15 GMT
Organization: Messina Software

zhong@cs.UAlberta.CA (John (Zhong)   Li) writes:

>Since some machines cannot support 'tcsh' shell I have to 
>set up my default shell into 'csh'. But I like to use 'tcsh'
>shell. After login, if possible, my '.login' will set 'tcsh'
>automatically. However, since this kind of setting made 
>'tcsh' is not the login shell it is annoying to exit. Every
>time when I logout I have to type "exit", then "logout" or
>"exit". Can anybody tell me a method to jsut type once by
>making either a script or an alias, then I can directly 
>exit from both 'tcsh' and 'csh' shells?

How about making your .login file look like this:

#
exec tcsh


and have all the other stuff in .cshrc.  Then make an alias
alias	logout	exit
and when you type "logout" you will be out all the way just as if you
were using csh.

t.
From: smr@hitkw14.pki-nbg.philips.de (S.Riehm)
Newsgroups: comp.unix.shell
Subject: Re: Tcsh&unknown characters(PLEASE HELP)
Date: 11 Sep 92 13:23:04 GMT

kopacik@mff.uniba.cs (Ivan Kopacik) writes:

>Hi!

>I use tcsh and I want to print unknown characters ( i.e. those
>that are neither printable nor control ), but _NOT_ in format
>\nnn. My terminal is in 8-bit mode. It works under csh
>but not under tcsh. How to setup tcsh?
>Any info would be great appreciated.

Do you mean international characters???
I found I got some problems with meta keys once I started using
international characters, perhaps you are having the oposite
problem that I had. There is an environment variable called:
NOREBIND, which if set, causes meta key sequences to remain mapped to
wonderfuly useful functions. However, if you unset NOREBIND and
restart your shell, you will get no meta mappings, and you should be
able to type Meta-character and get the special symbol defined for
that key sequence.

Also, even if you have NOREBIND set you can type ^VM-x and get your
meta character on the screen.

If you are using less, you might also check the LESSCHARSET
environment variable, it should be set to latin1 for normal iso8859-1
character sets. ( don'tya just love how simple and standard all this
stuff is?? )

-----------------------------------------------------------------
Stephen Riehm		Configuration Management	   _-_|\ 
smr@pki-nbg.philips.de	Philips Kommunikations Industrie  /     \
Work: +49 911 526 2975	N|rnberg, Germany		  \_.-.*/
Fax:  +49 911 526 2095	"I was there, now I am here!"	       v 
"My company speaks another language, I CAN'T speak on it's behalf"
Newsgroups: comp.unix.shell
From: palmerp@math.orst.edu (Paul A Palmer)
Subject: Re: zork shell=adven. shell?
Reply-To: Paul Palmer <palmerp@math.orst.edu>
Organization: Dept. of Math, Oregon State University
Date: Mon, 14 Sep 1992 03:45:15 GMT

In article <1992Sep12.191618.2031@drycas.club.cc.cmu.edu> naraht@drycas.club.cc.cmu.edu (Randolph J. Finder) writes:

   What I m thinking of as the Zork shell might actually be the adventure shell.

   I remember the following ways of doing things in it.
   Instead of cd .. it was "go up"
   instead of cd thing it was "go thing"
   to move a file you got the file and placed it in your inventory and then went
   to the new directory and dropped it there.

   Is this the adventure shell?

Yes, this is the adventure shell (ash) that I just posted. 

I originally got it as a prank to play on people who left themselves logged
in, but it's not very funny to those poor souls who have never played
adventure :-)

--
Paul Palmer
Department of Mathematics     	E-mail: palmerp@math.orst.edu
Kidder Hall 368
Oregon State University, Corvallis, Oregon 97331-4605
Newsgroups: comp.unix.shell
From: mjb@netcom.com (Martin Brown)
Subject: Re: Korn Shell Beginnings
Date: Sun, 06 Sep 92 17:26:41 GMT
Organization: Netcom - Online Communication Services (408 241-9760 guest)
Keywords: ksh shell books

In article <1992Sep6.042708.25257@cheshire.oxy.edu> legend@cheshire.oxy.edu (Linda A. Malcor) writes:
>
>I am just starting out with an IBM AIX system and the Korn shell really
>seems the way to go. I bought "The" book by David Korn himself, and
>where it is very good, there aren't nearly enough examples and
>"Tips-n-Tricks" type stuff. I have been looking in on this group for a
>few weeks and noone seems to talk about ksh that much.  Is there
>anything good out there I can ftp?
>
>Daniel Malcor
>Los Angeles Times - Editorial Library
>(213) 237-4590

While the ksh book by Korn is the *specification* of the KornShell language,
the book that really helps the most (IMO) is:

                KornShell Programming Tutorial
                by Barry Rosenberg

                a Hewlett-Packard Press book  # 5010-7152
               
                published by Addison Wesley
                ISBN 0-201-56324-X

This book is about 50% examples.  Don't let the word "Tutorial" in the title
scare you into thinking it's too simple a book.  I did for awhile, and now
regret the lost time.  There's very little tutorializing going on, just
example after example. 

Check it out.
-- 

                                   - mjb -

                                mjb@netcom.com
From: rhoro@muug.mb.ca (Rick Horocholyn)
Newsgroups: comp.unix.shell
Subject: Re: Need help putting PWD in PROMPT
Date: 14 Sep 92 02:37:06 GMT
Organization: Manitoba Unix User Group, Winnipeg, Manitoba, Canada

In <1992Sep13.154528.3369@muug.mb.ca> rhoro@muug.mb.ca (Rick Horocholyn) writes:

In <1992Sep8.152514.24851@orlith.bates.edu> pbeach@abacus.bates.edu (Preston Beach) writes:
>  I want to get my prompt to give my current working directory all the time.

If you use pushd/popd at all, you'll also want to set aliases for them too:

alias cd 'cd \!*; set prompt = "\! $cwd> "
alias pushd 'pushd \!*; set prompt = "\! `pwd`> "'
alias pop 'popd; set prompt = "\! `pwd`> "'

Rick.
Newsgroups: comp.unix.shell
From: peer@ccrma.stanford.edu (Peer Landa)
Subject: Problem to alias
Organization: DSO, Stanford University
Date: Sat, 5 Sep 92 14:40:42 GMT


I have some problem to alias the following command:
rsh remote_host dir/App -NXHost current_host&
		

In my .cshrc I tried to:
alias  rshh  'rsh \!:1 \!:2 -NXHost hostname&'
 . but it doesn't work.  Any suggestions?

-- peer
Newsgroups: comp.unix.shell
From: ellis@nova.gmi.edu (Stew Ellis)
Subject: Automating telnet
Summary: Does telnet read here documents?
Keywords: telnet, here documents, automatic login
Organization: GMI Engineering&Management Institute, Flint, MI
Date: Mon, 7 Sep 1992 01:57:05 GMT


I am trying to write a shell script to login to a remote gopher program.
The gopher program runs at login for user gopher, with no passwd.

I have seen scripts before that automated ftp or telnet login, but I cannot
find them.

I would have thought that telnet would read a here document in an orderly
fashion so something like the following would work:
  telnet remote.host << EOF
  loginname
  EOF

The man page for telnet is of no help on this.  I am probably missing
something obvious to someone, but it is not obvious to me. :(

Thank you for any help.


--
--                                                        ___________________
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
Newsgroups: comp.unix.shell
From: bruno@thunder.mcrcim.mcgill.edu (Bruno Hall)
Subject: Re: Need help putting PWD in PROMPT
Organization: McGill University Broom Closet
Date: Tue, 8 Sep 92 21:08:18 GMT

pbeach@abacus.bates.edu (Preston Beach) writes:

>  I want to get my prompt to give my current working directory all the time.
>I need this for an Ultrix and BSD system. If anyone knows of a script or
>shell file which will do this please send it my way. Thanks very much.
>				-Preston
>p.s. I am using csh. btw

Tsk.  You should be using tcsh, which has this feature built in. :-) :-)

Here's what I use (and it's not dependent on tcsh):

set hnm =  `hostname | sed 's/\..*//'`
if $?prompt then
  alias cd 'set old=$cwd; chdir \!*; dirs; resetprompt'
  alias pushd 'pushd \!* ; resetprompt'
  alias popd 'popd \!* ; resetprompt'
  alias resetprompt 'if "$cwd:q" == "/" set prompt = "${hnm}:[/] >"; if "$cwd:q" != "/" set prompt = "${hnm}:[$cwd:t] > "'
  resetprompt
endif

Plus, you get to use this:

alias back 'set whereto=$old; set old=$cwd; cd $whereto; unset whereto'

Bruno
-- 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Bruno Hall  |  VE2HUM  |  bruno@mcrcim.mcgill.edu         
McGill Research Centre for Intelligent Machines - Controls Group
New systems generate new problems -- Join the Flat Earth Society.
Newsgroups: comp.unix.shell
From: mjo@ef2007.efhd.ford.com (Mike O'Connor)
Subject: Re: Any known bugs for tcsh (6.02)
X-Disclaimer: Not an official spokesperson for Ford OPEO
Reply-To: Mike O'Connor <mjo@fmsrl7.srl.ford.com>
Organization: International Affairs, Overseas Engineering, "Fordz"
Date: Wed, 9 Sep 1992 14:31:56 GMT

In article <smr.716033030@hitkw14> smr@hitkw14.pki-nbg.philips.de
(S.Riehm) writes:

:I have compiled up tcsh6.02 on hpux, and on our system we have a

What version of HP-UX?  What architecture?

:When tcsh is started, you will sometimes receive the message:
:	    setpgid:Warning: no access to tty (Not owner).  Thus no job
:	    control in this shell.

I ran into this problem periodically with tcsh 6.00.0? under HP-UX 7.0?
on a PA-RISC HP 9000/7?0.  Understand, the "?"s indicate that this was
awhile back.  :)  I have, to date, encountered no such problems with
HP-UX 8.07 running tcsh 6.02 on an HP 9000/7[3-5]0.

:TCSH Authors
:	There is something wrong with your operating system (hpux).

<laughs>  There are many things wrong with HP-UX.  :)

:Our Sysadmins
:	Tcsh is not supported software, therefore its YOUR problem.

If the sysadmins install the software for public use and parts of it
are broken, it is their problem to a degree.

:Hewlett Packard
:	There is something wrong with tcsh.

Sounds typical.  Find the one or two lines of code that cause a
problem and report it to HP.  :)

						...Mike

-- 
 Michael J. O'Connor           |  Internet:  mjo@fmsrl7.srl.ford.com
 Ford Motor Company, OPEO      |  UUCP:      ...!{backbone}!fmsrl7!mjo
 20000 Rotunda, Bldg. 1-3001   |  Phone:     +1 (313) 248-1260
 Dearborn, MI  48121           |  Fax:       +1 (313) 323-6277
From: kurz@math.uni-frankfurt.de (Volker Kurz)
Newsgroups: comp.unix.shell
Subject: Re: How to empty a file
Date: 14 Sep 92 13:43:19 GMT
Distribution: world
Organization: University of Frankfurt/Main, Dept. of Mathematics

How about:

    $ cat /dev/null >logfile

On my system (rs6k/AIX) this doesn't seem to change the inode number.
What more can you ask for?

--
    Dr. Volker Kurz              |      J. W. Goethe-Universitaet
    kurz@math.uni-frankfurt.de   |      Fachbereich Mathematik
    Fax: ++49 (69) 798 8444      |      Postfach 11 19 32
    (GERMANY)                    | D -- 6000 Frankfurt am Main 11

Newsgroups: comp.unix.shell
From: Harald.Eikrem@delab.sintef.no
Subject: Re: seding with variables and /s question
Organization: SINTEF DELAB, Trondheim, Norway.
Date: 14 Sep 92 15:54:49

! Also, neither csh nor sh do variable substitution within single
! quotes, so you would want to enter:
! 
! sed -e "s:$DEVEL:$DEST:" $file > $destfile
! 
! In fact, as ":" isn't a special character, you needn't do any quoting.
! Now if $DEVEL or $DEST contained special characters/whitespace...

Wrong.  In csh ':' IS a special character if immediately behind a variable,
even within quotes.

I personally tend to use control-A characters for sed delimiters within
shell script files, because control-A is a highly unlikely character to
appear in a filename, and none of the shells I typically interfere with
nor sed will mess up a control-A.

   ~~harald E.
From: stuart@wstuart (Stuart Hood)
Newsgroups: comp.unix.shell
Subject: Re: Simulating keyboard input in interactive programs
Date: 10 Sep 92 16:35:57 GMT
Organization: Siemens Nixdorf Information Systems Ltd.

pdel@ADS.COM (Peter Delevoryas) writes:
: #1.
: 	How do you simulate a keypress in an interactive program
: 	which is within a script ? (If this is a FAQ I'm dead, I know.
: 	Oh well the public ridicule is worth the answer ).

This is easier in sh.  In csh you need a file (called fred, say):

    #!/bin/csh
    while (1)
	sleep 100 # or long enough for the restore to finish
	echo q
    end

then enter:

    % ./fred | while (1)
    > restore ivf /dev/tape
    > mt fsf 1
    > end

: #2
: 	This is kind of related to #1. Our dial-in lines are set to
: 	auto-log out after about 20 min. of inactivity. Short of
: 	programming the terminal-server not to do this, how can I
: 	keep a process going so that it always seems like I'm doing
: 	something, even if I'm in the kitchen making a BLT (extra mayo).
: 	Just starting up some kind of loop won't do it; it has to be
: 	equal to a keypress from MY keyboard.

I do not know how to do this in a machine independent way.

Stuart.
-
--
S I E M E N S  Stuart Hood === Siemens Nixdorf House, Bracknell, Berks, UK
-------------  Phone: + 44-344-850892          Email: stuart@siesoft.co.uk
N I X D O R F  - Never let ignorance stand in the way of a good argument -
From: hurtta@cs.Helsinki.FI (Kari E. Hurtta)
Newsgroups: comp.unix.shell
Subject: Re: "if () then" file tests in sh/csh/tcsh
Date: 8 Sep 92 10:09:11 GMT
Organization: Department of Computer Science, University of Helsinki, Finland

In article <1992Sep8.095348@masg6.epfl.ch> posse@masg6.epfl.ch (Christian Posse) wrote:
> Hi shells gurus !
> 
> In the man of sh/csh/tcsh and the FAQ, I have not found a description of
> the file tests in "if" expressions :
> 
> What means "if ( -d file && -x file) then". 
> Which parameters are available and for what (-d, -x, -t, .. ?)
> Which complexity is possible : how many ()/&&/... I guess && means "or"
> but which symbol for "and" ....
> 
> Is there a documentation available ?

In sh format is:
	if program arguments... 
	then 
		commands...
	fi

(You can replace new line with ;)

There is program named [
or that name thare isn't manual page, but 
it have also another name: test
For that name manual page exists.
(If that program is called with name [ it
 requires that last argument is ] otherwise
isn't).

For csh/tcsh format:
if ( expression ) then
endif

There is in csh manual page tittle 'Expression 
and Operators'. Look that.

- K E H
( Kari.Hurtta@Helsinki.FI,
  hurtta@cc.Helsinki.FI,
  hurtta@cs.Helsinki.FI,
  HURTTA@FINUH.BITNET
)
Newsgroups: comp.unix.shell
From: ronnya@stud.cs.uit.no (Ronny Haavard Arild)
Subject: Awk problem
Organization: University of Tromsoe, Norway
Date: Tue, 8 Sep 1992 11:35:17 GMT

When I write this line in my shell (zsh):

awk '/ .    [0-9.*]+ +[0-9]+ +[0-9.]+  */ {printf "%10s|%5s|%4s|%s\n", \ 
substr($0,7,10), substr($0,20,5), substr($0,27,4), substr($0,33,120)}' \
<oldfile> | tr "[A-Z]" "[a-z]" > <newfile>

from this line in <oldfile>:

      0000001231     212   8.1  African Queen, The

I get this line in <newfile>:

0000001231|  212| 8.1|aGS q, tI

While what I want is this:

0000001231|  212| 8.1|african queen, the

Could someone please help me out, as I'm stuck. From the little I know about
awk this should work.

Ronny
-- 
   Ronny H. Arild    | ronnya@stud.cs.uit.no | "The knack of flying is learning
    P.O.Box 5580     | University of Tromsoe | how to throw yourself at the
 N-9022 Krokelvdalen | ****** NORWAY ******* | ground and miss."-Douglas Adams
copy this line into your .signature to protect it against viruses! [version-9]