Re: Text Processing Question

2001-06-08 Thread will trillich
On Thu, Jun 07, 2001 at 11:43:36PM -0700, Adahma wrote: > On Fri, Jun 08, 2001 at 01:29:42AM +0100, Colin Watson wrote: > > > > The shell will do nicely: > > > > #! /bin/sh -e > > cat >"$1" < > DBUSER=$1/$2 > > export DBUSER > > EOF > > > > Error detection is left as an exercise for the reader.

Re: Text Processing Question

2001-06-08 Thread Adahma
On Fri, Jun 08, 2001 at 01:29:42AM +0100, Colin Watson wrote: > > The shell will do nicely: > > #! /bin/sh -e > cat >"$1" < DBUSER=$1/$2 > export DBUSER > EOF > > Error detection is left as an exercise for the reader. :) ('sh -e' is a > good start, though - the script will terminate if any comma

Re: Text Processing Question

2001-06-07 Thread Leonard Leblanc
a hacker's paradise... Leonard Leblanc Webmaster / Intranet Administrator www.emergeknowledge.com - Original Message - From: "Adahma" <[EMAIL PROTECTED]> To: "Debian List" Sent: Thursday, June 07, 2001 5:17 PM Subject: Text Processing Question > I

Re: Text Processing Question

2001-06-07 Thread Colin Watson
Adahma <[EMAIL PROTECTED]> wrote: >I have about 400 little 2 line files to create, that I'm sure should >be scriptable, but can't seem to figure out the right tools. > >The file format should be as follows: > >DBUSER=username/password >export DBUSER > >I'd like to be able to run something like: >sc

Re: Text Processing Question

2001-06-07 Thread Forrest English
you could do it with perl... -- Forrest English http://truffula.net "When we have nothing left to give There will be no reason for us to live But when we have nothing left to lose You will have nothing left to use" -Fugazi On Thu, 7 Jun 2001, Adahma wrote: > I have about 400 little 2 line

Text Processing Question

2001-06-07 Thread Adahma
I have about 400 little 2 line files to create, that I'm sure should be scriptable, but can't seem to figure out the right tools. The file format should be as follows: DBUSER=username/password export DBUSER I'd like to be able to run something like: scriptname username password and just have a