HDTenEightyP/NetNews huggingface dataset:
From: ting@Redwood.XAIT.Xerox.COM (Hungtau Ting)
Newsgroups: comp.unix.questions,comp.unix.msdos,comp.unix.programmer
Subject: unix to msdos file/directory name converter
Keywords: msdos file directory convert
Date: 28 Jul 92 20:32:22 GMT
Reply-To: ting@Redwood.XAIT.Xerox.COM (Hungtau Ting)
Followup-To: comp.unix.programmer
Organization: Xerox Advanced Information Technology, Cambridge, MA

Hi,

Given the long histry of UNIX and MSDOS, someone somewhere should
have written a package to convert a UNIX style source tree to
MSDOS style source tree.  It'll pack unix file/directory names
according to a map file and enforce msdos's 8 char. name, 3 char
extension.  Finally, it'll go into the source file and all Makefiles
to replace the old UNIX names to new MSDOS style name.

Is such a package exist?  If so, I'll like to hear from you.
Any information will be very much appreciated.

Hungtau Ting
Software Engineer
XAIT
ting@xait.xerox.com
From: williams@bellman.lanl.gov (Kirk Williams)
Newsgroups: comp.unix.questions
Subject: linker/library probs...
Date: 24 Jul 92 20:09:35 GMT
Reply-To: williams@picuris.lanl.gov
Organization: Los Alamos National Laboratory



ok, i got a problem like this:  when trying to compile a program, 
  my makefile spits out this error:

	"ld.so: libos.so.1: not found"

now, this file does not exist on any dir that ive looked thru;  
  im using ObjectStore C++ compiler, with its own libraries and
  such.
  
question is, how do i tell the dynamic linker to use one of these 
  libraries (sa, one named libos.so.1.34)?

my paths are all correct;  both in the makefile (using '-L') and in
  the environment (namely, LD_LIBRARY_PATH).  now, i know about the
  '-l' switch;  however, whatever i do doesnt seem to change a thing.
  same error every time.

thanks for the time, in advance.....



kkw
williams@picuris.lanl.gov
"LANL:  the only place in the world where people wash their
 hands _BEFORE_ going to the restroom...."   --> anonymous
From: zzang@whale.stat.ufl.edu (Zhuo Zang)
Newsgroups: comp.unix.questions
Subject: sh question: Please Help!
Date: 23 Jul 92 22:03:37 GMT
Organization: College of LAS, UFL

Helllo,
I try to print out the usage
in serveral places in a !/bin/sh script.
If I use all the echo statement 
wherever I need, the file will be
very long. Is it possible to define
a var usage for this purpose, and
when I need print out the usage,
I may simply use:
${usage}

If you have only one line, you may use
usage="echo Usage"
However, if you have two line, I dont know how.
say , you need put two line statements:

echo Usage:
echo Options:

in a variable.

I tried :
usage="echo Usage:;echo Options:;"
it doesnt work.

Thanks in advance !

-- 
Zhuo ZANG
Department of Statistics               E-mail: zzang@stat.ufl.edu
University of Florida
Newsgroups: comp.unix.questions
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: Sorting articles of variable number of lines
Originator: tchrist@pixel.convex.com
Keywords: Sorting text Files
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: CONVEX Realtime Development, Colorado Springs, CO
Date: Fri, 24 Jul 1992 13:52:04 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 ebel@lsesun3.epfl.ch (Norbert EBEL):
:Hi Netters,
:
:If I want to sort text files containing articles of variable length
:according to a fixed criteria I thought of the following solution:
:
:1) make a very long line with an article putting a special sequence in 
:   order to remember the end of line, using tr, awk or sed
:2) sorting according the given criteria using sort
:3) rechanging the special sequence to nl
:A problem is most utilities allows for limmited length of line
:
:Is there any better solution or possibly a utility for that.
:
:I found this problem when I saved mails in the wrong incoming order
:in a folder. For that special pourpose there is special option on Sun in 
:the mail utility but I can imagine other situations where a similar 
:problem will occur.
:
:Please answer by e-mail. Thanks

Well, I did: when I read the question in another newsgroup.
Apparently, the poster posted the same message to multiple
groups without using the Newsgroups line.  Please do this.
Somewhere Jonathan Kamens has a stock chastisement for this.

My answer was brief:
This is much easier to do in perl.
Read each message into an array element,

    $* = 1;  # make ^ match at beginning of line, not just of string
    $i = -1;
    while (<>) {
        /^From / && $i++;
        $arts[$i] .= $_;
    } 

Now do the sort:

    @newarts = sort my_routine @arts;

    sub my_routine {
        # two msgs are in $a and $b; return 0, 1, or -1 per qsort
    } 

If it's really short, just inline the thing

    require 'getdate.pl';  # the yacc-to-perl version, of course 

    print sort {
	local($d1) = $a =~ /^Date:\s+(.*)/;
	local($d2) = $b =~ /^Date:\s+(.*)/;
	&getdate($d1) <=> &getdate($d2)
    };

Now, this is actually pretty inefficient.  It would be better
to do this:

    grep(push(@idx, &getdate(/^From\s+\S+\s+(.*)/)), @arts);
    print @arts[sort { $idx[$a] <=> $idx[$b] } 0..$#idx];

But that's a bit subintuitive.

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


    "We don't care.  We don't have to.  We're the Phone Company."
Newsgroups: comp.unix.questions
From: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
Subject: Re: question on "&"
Reply-To: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
Organization: NASA/Goddard Space Flight Center
Date: Thu, 30 Jul 1992 11:47:31 GMT

buboo@alf.uib.no (Ove Ruben R Olsen) writes:

>Shu-Chen Eclipse writes:
>>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,

>Like some of us have already stated in a previous message from you,
>reading the excelent fine manual (RTEFM) for your shell will reveil
>it's secret in large.

Ohh... I guess using the comp.unix.questions newsgroup to ask Unix-related
questions is a bad idea.

Expect all future questions to this newsgroup to be answered as such:

"Read the manuals"

Geez...
-- 
==============================================================================
#include <std/disclaimer.h>

                Jim Jagielski                  NASA/GSFC, Code 734.4
          jim@jagubox.gsfc.nasa.gov             Greenbelt, MD 20771

           "The great scallop... this tatty, scrofulous old rapist,
               is second in depravity only to the common clam."
Newsgroups: comp.unix.questions
From: sarma@rtsg.mot.com (Raja Sarma)
Subject: How to preserve the window image in "vi" and "less/more" - Pl. Help
Summary: Help needed to preserve the window data after "vi", "less/more" session
Keywords: vi, less, more, sunview, xwindows, DeskSet (sunview's Open Windows)
Organization: Motorola Inc., Cellular Infrastructure Group
Date: Tue, 28 Jul 1992 12:15:38 GMT

Hi,
  Can someone tell me on how to keep the window data (ie. whatever the 
window was displaying. (eg: ls, output from programs, etc ...)) after ending 
a vi, less or more session? I am not sure if this was dealt in the FAQ, if so
please forgive for my reduntdant question and point to me where it is found.

  Currently when I quit out of my editing or paging session my window data
prior to the starting of the session is not restored but leaves displaying
the file I had edited/paged.  I was able to achieve what I wanted under
Openwindows for X and regular Sunview environment however under DeskSet
for Sunview (ie. OpenWindows port for SunView (I guess ?)) I can't do the
same.  I looked for any escape sequences that might be involed but in vain.

I will summarize your replies to the net so, kindly send your replies or flames
by E-mail directly to me.

Thanks in advance for your help.

-- Raja Sarma
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
E-mail: sarma@maize.rtsg.mot.com	Motorola Inc.
					Cellular Infrastructure Group
					Arlington Hgts., Illinois
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
From: sbm@cs.adelaide.edu.au (John!)
Newsgroups: comp.unix.questions
Subject: C Compiler for SCO Unix V 386
Date: 31 Jul 92 02:31:27 GMT
Reply-To: sbm@cs.adelaide.edu.au (John!)
Organization: Guest Account - Dept of Comp Sci, Uni of Adelaide

Does anyone know if there is a COMPILED (ie: not source) C compiler
available on any FTP sites?? If so.... where ????


Thanx,

John!		Internet:  sbm@cs.adelaide.edu.au
-------------------------------------------------
LOST: 1 signature, if found, please return to the
      above Internet address. REWARD.
Newsgroups: comp.unix.questions
From: flt@inel.gov (Logan Thomas)
Subject: Yp (NIS) request or question
Organization: Idaho National Engineering Laboratory, Idaho Falls, Idaho
Date: Thu, 30 Jul 92 18:30:23 GMT

Keywords: ypwhich
Hi there
	If  you type in ypwhich on my master server, it returns
	a node name for a slave-server.  Is there a command or
	something, that verifies ypmaster,ypserver,and ypclent.
	
	IS this the correct group for NIS questiob.

	Thanks in advance......
 


---------------------------------------------------------------
F. Logan Thomas                   UUCP:  ...!uunet!inel.gov!flt
Idaho National Engineering Lab    Internet:  flt@inel.gov
P. O. Box 1625 M.S. 2603          Phone:  (208) 526-9081
Idaho Falls, ID 83415             FAX:  (208) 526-9936



-- 
---------------------------------------------------------------
F. Logan Thomas                   UUCP:  ...!uunet!inel.gov!flt
Idaho National Engineering Lab    Internet:  flt@inel.gov
P. O. Box 1625 M.S. 2603          Phone:  (208) 526-9081
Idaho Falls, ID 83415             FAX:  (208) 526-9936
========== long legal disclaimer follows, press n to skip ===========

Neither the United States Government or the Idaho National Engineering
Laboratory or any of their employees, makes any warranty, whatsoever,
implied, or assumes any legal liability or responsibility regarding any
information, disclosed, or represents that its use would not infringe
privately owned rights.  No specific reference constitutes or implies
endorsement, recommendation, or favoring by the United States
Government or the Idaho National Engineering Laboratory.  The views and
opinions expressed herein do not necessarily reflect those of the
United States Government or the Idaho National Engineering Laboratory,
and shall not be used for advertising or product endorsement purposes.
From: zzang@whale.stat.ufl.edu (Zhuo Zang)
Newsgroups: comp.unix.questions
Subject: Re: Where's the FAQ?
Date: 30 Jul 92 20:36:31 GMT
Distribution: usa
Organization: University of Florida


You may get FAQ at pit-manager.mit.edu
in /pub/usenet/
search in the group (directory) news.answers
for FAQ's

Good luck!

-- 

Zhuo Zang
University of Florida            email: zzang@stat.ufl.edu
Newsgroups: comp.unix.questions
From: hashmi@cse.uta.edu (Atiqullah Hashmi)
Subject: Leaving my .edu account. IAny public Int'net account available  ?
Organization: Computer Science & Engineering, Univ. of Texas at Arlington
Distribution: na
Date: Tue, 21 Jul 1992 05:37:18 GMT


-- 
---------------------------------
Atiqullah Hashmi                     
UTA (Univ. of Texas at Arlington)   
hashmi@cse.uta.edu                 
Newsgroups: comp.unix.questions
From: navarra@casbah.acns.nwu.edu (John Navarra)
Subject: Re: Collapsing continuation lines (
Organization: Northwestern University, Evanston Illinois.
Date: Thu, 23 Jul 1992 08:32:36 GMT

In article <1992Jul17.191046.1672@news.eng.c> tchrist@convex.COM writes:
>
>
>You can do a lot in it, but I'm not sure that it really does
>beat a boot to the head.  If someone gives me a working sed script of some
>complexity, I'm glad to use it, but I sure would rather develop new
>scripts in something further removed from the text-processing equivalent
>of machine language.

	Here Here!

>-- 
>    Tom Christiansen      tchrist@convex.com      convex!tchrist
>
>    "I never met a chocolate I didn't like." 
>	--Deanna Troy, ST:TNG
>

Hey Tom,
If you must quote that strange 'I feel pain' bimbo from Trek,
 
$ sed 's/Troy/Troi/' .signature > .sig.tmp; mv .sig.tmp .signature

Of course, you can use perl as well. ;-)

-tms

Newsgroups: comp.unix.questions
From: zbig@wariat.org (Zbigniew J. Tyrlik)
Subject: Re: Removing control codes, underscores
Followup-To: comp.unix.questions
Reply-To: zbig@wariat.org (Zbigniew J. Tyrlik)
Organization: Akademia Pana Kleksa, Public Access Uni* Site
Date: Tue, 28 Jul 1992 14:12:08 GMT

As quoted from <1992Jul28.031523.16602@sequent.com> by gregf@sequent.com (Greg Fuller):

+---------------
> kuo_wy@jhunix.hcf.jhu.edu writes:
> 
> > 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
> 
> [ etc. ]
> 
> > So, my question is how do I remove the repeated characters, the underscores
> > and the control codes?
> 
> I would recommend using sed like this: (^H is control H)
> 
> man command | sed 's/.^H//g' > temp
> 
> greg


What about:
man command | col -b > temp

Where col -b will assume that device is incapable of backspacing, 
and will take care of all of it....

_zjt

-- 
********************************************************************
Zbigniew J. Tyrlik             wariat!zbig           zbig@wariat.org
IBM PC SIG Sysop - Cleveland Free-Net    aa609@cleveland.freenet.edu
Akademia Pana Kleksa   Public Access UNI* Cleveland,  (216)-481-9445
E-mail, news feeds, shell accounts        UnixBBS distribution point 
********************************************************************
Newsgroups: comp.unix.questions,comp.unix.programmer
From: cpshelle@neumann.waterloo.edu (cameron shelley)
Subject: Re: Making ``.plan'' EXECUTE a Program ???
Organization: University of Waterloo
Date: Wed, 22 Jul 1992 12:44:03 GMT

spencer@burn.Princeton.EDU (S. Spencer Sun) writes:
> Until, of course, the system reboots, in which case your writer process
> will die (unless you can persuade your sysadmin to stick it in the
> startup processes), or if someone fingers you on another machine that
> mounts your home directory (named pipes don't seem to work too well over
> NFS if the reader and writer are on different machines).

I have a piped .plan file, and a cron job that wakes up every morning
to restart it if it's busted.

> Useless blathering: I don't think this belonged in comp.unix.wizards so
> I have removed it from the Newsgroups: line.  The question is also
> dangerously close to being a FAQ (the FAQ answers the "How do I find out
> who is fingering me" which mentions the named pipe hack)

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... 

</dev/cam
--
      Cameron Shelley        | "Syllogism, n.  A logical formula consisting
cpshelle@neumann.waterloo.edu|  of a major and a minor assumption and an
    Davis Centre Rm 2136     |  inconsequent."
 Phone (519) 885-1211 x3390  |                          Ambrose Bierce
Newsgroups: comp.unix.questions
From: D. "Maverick" Miller <dmmiller@magnus.acs.ohio-state.edu>
Subject: Is there a listserver for this newsgroup?
Organization: The Ohio State University
Date: Tue, 28 Jul 1992 22:14:43 GMT
X-Mailer: ELM [version 2.3 PL11]

Title says it all...I will lose newsgroup access soon but would like to get 
this on a weekly/monthly basis....anyone?


-- 
D. "Maverick" Miller
Ohio State University, College of Agriculture
E-mail: miller.795@osu.edu(.us)  [this address forwarded to email in header]
My words are my own(nobody else would claim them)
From: cliburn@doc.bmd.trw.com
Newsgroups: comp.unix.questions
Subject: FAQ FOUND!!   Was: Where's the FAQ??
Date: 29 Jul 92 09:41:24 MST

The FAQ for this newsgroup, along with other useful information (including
a Unix & C booklist) may be found at ftp.wg.omron.co.jp (133.210.4.4) in
the pub/unix-faq subdirectory.

Thanks to those who responded to my request.

Jay Cliburn
TRW Ballistic Missiles Division
Ogden, Utah, USA
Xref: sparky comp.unix.questions:9387 comp.unix.bsd:2776
From: buus@spica.bu.edu (Bryan Buus)
Newsgroups: comp.unix.questions,comp.unix.bsd
Subject: Survey -- Which OSes are based on BSD?
Date: 24 Jul 92 15:56:08 GMT
Reply-To: buus@spica.bu.edu
Followup-To: comp.unix.questions
Organization: Boston University Skateboarding Team


Hi all..  I have a few survey-ish questions to ask...

What operating systems available today currently use BSD as a base?
What version of BSD are they based on, and how much do they deviate
from BSD?  Were there any vendor extensions?  SysV extensions?  Did the
vendor take any BSDisms out?

I'm only concerned with user-level commands, including system
administration commands and the like.

I realize that this is a pretty broad range of questions.  I'm
expecting pretty board answers back -- I don't need to know anything
_too_ overly specific.

Please repl via e-mail, and I'll post a summary if I get a good number
of replies.

Thanks,

Bryan (buus@spica.bu.edu)
Newsgroups: comp.unix.questions
From: navarra@casbah.acns.nwu.edu (John Navarra)
Subject: Regular Expressions with [fe]grep (AGAIN)
Organization: Northwestern University, Evanston Illinois.
Date: Thu, 30 Jul 1992 11:03:31 GMT

[no one provided a useful answer the first time I tried this so I will
 try again]

I have two related questions on regular expressions using some form of
grep. They both involve grouping the pattern with ()'s and doing some
form of counting of the number of occurences of the pattern within
the paranthesis.


	Say I have the following file:

0
00
000
0000
00000
000000
0000000
...

	and I issue the following commands:

$ grep '^0\{1\}$' testfile 
0
$ grep '^0\{2\}$' testfile 
00
$ grep '^0\{1,3\}$' testfile 
0
00
000

Now, however, I want to change each '0' to a '123':

123
123123
123123123
123123123123
123123123123123
123123123123123123
123123123123123123123

and I want to get the same results with the pattern matching.
I want to print out the lines with one string of '123', the 
lines with two strings of '123',  or at least 1 but no more than
3 strings of '123'  

Is there some way using a form of grep to do this? Egrep has '()' grouping
but doesn't have the \{n,m\} stuff. And grep has the opposite. Grrr. 

Secondly, what if my file looked like:

123.105.113.13
123.123.113.13
123.123.123.13
123.123.123.123

How would I print out the lines matching the following conditions:
1) only one occurence of '123'
2) two or more occurences of '123'
3) at least two but no more than 4 occurences of '123'.


Is grep disabled or am I?
If it turns out that the grep family is disabled, I would like to here
some suggestions with sed, awk, or perl which might do the trick.


-tms


~
~
-- 
>From the Lab of the MaD ScIenTiST:
					
navarra@casbah.acns.nwu.edu
From: larsonb@taurus.cs.nps.navy.mil (ben larson)
Newsgroups: comp.unix.questions
Subject: Re: tar xvfm Permission Denied problem
Keywords: tar
Date: 30 Jul 92 02:12:22 GMT
Reply-To: larsonb@cs.nps.navy.mil (ben larson)
Distribution: usa
Organization: Naval Postgraduate School, Monterey CA

In article <Brw8vq.AKn@magna.com> you write:
>In article <5707@taurus.cs.nps.navy.mil> larsonb@taurus.cs.nps.navy.mil writes:
>>We're trying to retrieve a number of files from an 8mm tape using tar
>>but are having trouble with permissions.  The command we use is:
>>
>>	tar -xvfm /dev/rst1
>>
>>etc.

>etc....
>See what happens with the "-o" option to 'tar' which should take on
>the attributes of the user doing the extract rather than those written
>to the tape as is the default...
>
>Regards and Good Luck !
>
>-- Doc

Thanks to all those who sent me messages.  The -o flag did not work but
one of our folks did figure out the problem which I am not able to 
explain in detail.  The problem was the directory was mounted using NFS
and the permissions were wrong.  Still tar could not restore the files
directly.  We had to copy them to a local device first and then move 
them to the NFS mounted directory. 

If anyone knows of a better solution, please let me know.  One person
suggested using the GNU version of tar.  Does anyone know if this sort
of problem could be handled by GNU tar?  Unfortunately, due to the
security level of our system, we are not able to practically install
non-vendor software--but that's a different issue.


----------
Ben Larson, Captain, USAF
USSTRATCOM/J625DWG
Email:  larsonb@cs.nps.navy.mil
Newsgroups: comp.unix.questions
From: Tom Christiansen <tchrist@convex.COM>
Subject: Re: Applying Patches
Originator: tchrist@pixel.convex.com
Reply-To: tchrist@convex.COM (Tom Christiansen)
Organization: CONVEX Realtime Development, Colorado Springs, CO
Date: Wed, 29 Jul 1992 18:15:01 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 jsmckay@okcadm.okanagan.bc.ca (da d00d cometh):
:I am having problems applying a patch to a program.  I enter 
:sh patch and I cannot get it to work correctly.  What am I doing
:wrong??

The zeroth thing you're doing wrong is not providing a sufficiently
detailed description of what you're trying to do, what you type, and
what it says back.

But now that I think about it, since patch is a C program, not a shell
script, typing "sh patch" isn't going to help youmuch.

Did you RTFpatchM?

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

    "UNIX was not designed to stop you from doing stupid things, because
     that would also stop you from doing clever things." -- Doug Gwyn
From: tchrist@convex.COM
Newsgroups: comp.unix.questions
Date: 17 Jul 92 23:04 MDT
Subject: Re: need "ls"-like output w/full path
Nf-ID: #R:1992Jul13.234001.18747@amhux2.am:851811750:1992Jul17.190452.1265@news.eng.c:1024024507:001:359
Nf-From: convex.COM!tchrist    Jul 17 23:04:00 1992


From the keyboard of afsipmh@cidsv07.Berkeley.EDU (Patrick Hertel):
:What about:
:#!/bin/sh
:for i in *
:do
:echo `pwd`/$i
:done

Functionally correct, but run pwd once first and put
it in a variable to save one process per file.

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


Every absurdity has a champion who will defend it.

Newsgroups: comp.unix.questions
From: mitch@cirrus.com (Mitch Wright)
Subject: Re: Unix-C-Booklist
Followup-To: poster
Organization: Cirrus Logic Inc.
Date: Thu, 23 Jul 1992 20:02:33 GMT

/* johnboyd@ocdis01.oc.aflc.af.mil (John Boyd;LAHDI) writes: */

>I did an archie search for the subject list recently, and the results
>yielded versions that were all either *very* or relatively old.  Can
>someone tell me where the most current version of the doc is usually kept?
>
Greetings!  I'm the keeper of the list you are referring to (YABL).  Since
I'm not contracting to the USAF anymore, I have very little free time.  The
most recent version can always be found on the host "ftp.rahul.net".  It
should be under "pub/mitch/YABL/yabl".  I plan to have an updated version
there near the end of the month and will try to post it to USENET as well.

   ~mitch
From: rdorich@jade.tufts.edu (Rob)
Newsgroups: comp.unix.questions
Subject: Re: Script for killing mutiple processes?
Date: 21 Jul 92 19:22:46 GMT
Organization: Tufts University - Medford, MA

In order to kill many jobs running on the background, I ususally use
the following trick:

kill -9 `ps -aux | grep myname | grep filename | awk '{print $2}'`

You can try that, and it should do the trick,

Roberto Dorich
rdorich@jade.tufts.edu
Newsgroups: comp.unix.questions