Re: MAILX on an AIX server with arguments
- From: Bill Marcum <bmarcum@xxxxxxxxx>
- Date: Tue, 26 Sep 2006 14:02:27 -0400
On 25 Sep 2006 16:54:22 -0700, DanceRat
<kimberly.shaffer@xxxxxxxxx> wrote:
I'm having the darndest time with this but it seems like it would be aif [ -f "$mfile" ]; then
simple thing I'm missing...
Basically, what I'm trying to do is have my cake and eat it too - if
there isn't a file for the body, (no mfile exists), then I want it to
just put whatever is typed out in argument #1 as the bodyfile - for
instance, I type in "this is a test" for the $1 argument and when it
sees that there isn't a file called "this is a test" it actually just
uses that string as the body.
Anyone have any ideas?
cat "$mfile" > $afile.uu
else
echo "$mfile" > $afile.uu
fi
--
It's there as a sop to former Ada programmers. :-)
-- Larry Wall regarding 10_000_000 in <11556@xxxxxxxxxxxxxxxxxxxxxxx>
.
- References:
- MAILX on an AIX server with arguments
- From: DanceRat
- MAILX on an AIX server with arguments
- Prev by Date: Re: MAILX on an AIX server with arguments
- Next by Date: Re: :t and getting senile.
- Previous by thread: Re: MAILX on an AIX server with arguments
- Next by thread: newbit: what this bash script means?
- Index(es):