Re: Bash script - pass command line arg to embedded sed script with multiple args

2010-04-17 Thread Michael Elkins
On Sat, Apr 17, 2010 at 12:02:40PM -0400, Daniel D Jones wrote: That was the first thing I tried and sed gave me an error: sed: -e expression #1, char 18: unknown option to `s' I just went back and tried it again and it worked, so I have no idea what I did the first time that made it not work.

Re: Bash script - pass command line arg to embedded sed script with multiple args

2010-04-16 Thread Michael Elkins
On Fri, Apr 16, 2010 at 08:15:38PM -0400, Daniel D Jones wrote: What I'm trying to do is pretty simple. Getting it to work is turning out not to be. What I want to do is call a bash script with a couple of arguments, and, within the script, call sed to use those args to replace two placeholders

Re: ditching mutt

2010-04-08 Thread Michael Elkins
On Thu, Apr 08, 2010 at 04:43:03PM -0700, Tyler MacDonald wrote: > After over 10 years of faithful service (essentially when I ditched pine), > I am considering having my mutt put down. Should I move over to gmail, or is > there some amazing scriptable GUI mail client that is going to knock my > so

Re: Bash email attachment

2010-03-08 Thread Michael Elkins
On Mon, Mar 08, 2010 at 02:53:38PM +0100, Raven wrote: > To encode the image I use: > > /usr/bin/uuencode img.jpg img.jpg > attachment.txt > cat hdr.txt body.txt attachment.txt > message.txt > $SENDMAIL "-f" $4 "--" $2 > Anyone knows how to solve this? As the others have mentioned, you should b