Yahoo : Winternet : TC Guide  : Files of Local Interest Enter Sysinfo.com :

Subject: Re: UUENCODE NOT MIME
Subject: Re: How do you delete files with "-" in them?
Subject: Re: How do you delete files with "-" in them?




From: Peter Jerde <jerde@winternet.com>
Newsgroups: winternet.help
Subject: Re: UUENCODE NOT MIME
Date: 2 Jan 1996 08:28:40 GMT
Lines: 49
Distribution: local
Mime-Version: 1.0

Mark Griebel, mgriebel@winternet.com writes:
>Say, how does one send email with an attachment to some one and have the 
>attachment UUENCODED. Every time I send an attachment to a friend of mine 
>at prodigy it is MIME encoded. Even if I uuencode it before uploading 
>it. I use Elm for my mail, and I upload my attachments to winternet with 
>Zmodem or kermit prior to attaching them to email. The file I want to 
>send MUST be UUENCODED. Does all mail go out of winternet MIME encoded? 
>Even if its text? I don't think the problem is Prodigy, he has other 
>people send attachments UUENCODED, no problem. Do I need to UUENCODE the 
>attachments from the UNIX shell here at winternet after I upload them? 
>How does one do that? PLEASE help. I need to get a file sent soon. THANKS!


Here's how I'd do it. Assume the file name you want to send is
program.exe... From the shell, do this:

uuencode program.exe program.exe | mail -s "subject" user@host

If you wanted to mail this to me, you'd:

uuencode program.exe program.exe | mail -s "Here's your file, Peter"
jerde@winternet.com

(that line probably got wrapped... but it all goes on one line, of course)


This uuencodes the program, and sends the uuencoded data directly to
sendmail, which mails it off to whomever you want. It doesn't even write
the uuencoded file to disk. The two identical arguments after uuencode are
there on purpose: the first is the name of the file you want to uuencode,
the second is the filename it writes in the uuencoded file; when the file
is later uudecoded, it will use this name for the extracted file. It makes
sense for the extracted file to have the same name as the original.



Of course, if you already have uuencoded the file (we'll call it file.uu)
you could do this to mail it off to the individual:

cat file.uu | mail -s "subject" user@host

There might be a better way to do some/all of this, but this works.

Have fun, drive safely.

>Email: mgriebel@winternet.com

 - Peter
jerde@winternet.com

--


From: spp@psisa.com (Stephen Potter)
Newsgroups: comp.unix.admin
Subject: Re: How do you delete files with "-" in them?
Date: 28 Feb 1996 19:07:01 GMT
Lines: 42
	<3134C36B.194C@nla.gov.au>
In-reply-to: Robin Maddock's message of Wed, 28 Feb 1996 13:04:43 -0800

In article <3134C36B.194C@nla.gov.au> Robin Maddock <rmaddock@nla.gov.au> writes:
   Mark Bolton wrote:
   > 
   > In article <4fqcs9$pa8@guysmiley.blarg.net>, shahryar@blarg.net says...
   > >
   > >Hi,
   > >
   > >I have a file called "-rw-r-----".  How do I remove it files with such
   > >characters?

   try rm "'-rw-r-----'"

   " groups the arguments into one
   ' 'kills' special characters

   Works for me.

Does it really?  Did *you* actually try this?  Here's what happens on a
Sun machine (either 4.1.3 or 2.4/2.5):

$ touch ./-foo
$ rm "'-foo'"
'-foo': No such file or directory
$ rm "-foo"
rm: illegal option -- o
rm: illegal option -- o
usage: rm [-fiRr] file ...

Why can't we ever put this thread to rest?  The *ONLY* 100% portable, easy
solution that has worked on every system since before I got into Unix is:

$ rm ./-foo

Just make your life easy and use relative pathnames.

-spp
-- 
Stephen P Potter        Pencom Systems Administration              Beaching It 
spp@psa.pencom.com	Pager: 1-800-759-8888, 547-9561     Work: 703-860-2222
   "I'm supposed to be their God, and I've broken five of their commandments 
   already.  I'd've broken all six, but there aren't any sheep on board."
		-Dave Lister, 3rd technician, Red Dwarf

--


From: bob desinger <rfd@lsil.com>
Newsgroups: comp.unix.admin
Subject: Re: How do you delete files with "-" in them?
Date: Mon, 04 Mar 1996 10:35:49 -0800
Lines: 11
Mime-Version: 1.0

> Remove 'rm' is looking at '-' as a parameter and as long as your -file
> appears after a valid file name or parameter then rm will remove it.

Along those lines, you can also type any of:

    rm ./-rw-r-----		# dot slash
    rm `pwd`/-rw-r-----		# backquotes
    rm $PWD/-rw-r-----		# ksh only
    rm $cwd/-rw-r-----		# csh only

-- bd

--

Yahoo : Winternet : TC Guide  : Files of Local Interest Enter Sysinfo.com :



Hosted by: Enter:  sysinfo.com


©copyright 1995-2002 sysinfo.com