There's GOTTA Be A Way...

2003-09-13 Thread TekknoDraykko
I just installed a Hayes compatible (external/serial) modem on my Red Hat Linux 8.0 box and for the life of me, I can't figure out how to make the ^%$#@ thing work! I tried putting the Mac CD that came with the device in the drive, but the system doesn't recognize the CD (however when I put the

Re: There's GOTTA Be A Way...

2003-09-13 Thread Michael Scottaline
On Sat, 13 Sep 2003 15:56:57 EDT [EMAIL PROTECTED] insightfully noted: I just installed a Hayes compatible (external/serial) modem on my Red Hat Linux 8.0 box and for the life of me, I can't figure out how to make the ^%$#@ thing work! How are your tying to make

Re: There's GOTTA Be A Way...

2003-09-13 Thread fred smith
On Sat, Sep 13, 2003 at 03:56:57PM -0400, [EMAIL PROTECTED] wrote: I just installed a Hayes compatible (external/serial) modem on my Red Hat Linux 8.0 box and for the life of me, I can't figure out how to make the ^%$#@ thing work! I tried putting the Mac CD that came with the device in

Perl vs Shell: there's gotta be a way to...!

2003-01-04 Thread Marco Shaw
What I want: Take file.txt and *strip* out foo and replace with bar, *but* I don't want to redirect to a tmp file or anything: I would like one command. Perl: 1. perl -pi -e 's/foo/bar/g' file.txt SED, for example: 1. sed 's/foo/bar/g' file.txt file.txt.tmp 2. mv file.txt.tmp file.txt So perl

Re: Perl vs Shell: there's gotta be a way to...!

2003-01-04 Thread Scott Croft
Just use vi and use the %s/foo/bar/g then save it unless you don't want to do it interactively, then I'd use a tmp file, just as easy. Scott On Sat, 2003-01-04 at 10:24, Marco Shaw wrote: What I want: Take file.txt and *strip* out foo and replace with bar, *but* I don't want to redirect to a

Re: Perl vs Shell: there's gotta be a way to...!

2003-01-04 Thread Brian Ashe
Marco Shaw, On Saturday January 04, 2003 12:24, Marco Shaw wrote: What I want: Take file.txt and *strip* out foo and replace with bar, *but* I don't want to redirect to a tmp file or anything: I would like one command. Perl: 1. perl -pi -e 's/foo/bar/g' file.txt SED, for example: 1.

Re: Perl vs Shell: there's gotta be a way to...!

2003-01-04 Thread mklinke
Marco, Using vi you can vi file.txt -w scriptfile and any commands you enter in the editor will automatically be recorded and placed in the file scriptfile. (Just enter your global replacement command and exit.) Now, on any file that you want to execute this script file against, issue

Re: Perl vs Shell: there's gotta be a way to...!

2003-01-04 Thread Cameron Simpson
On 13:24 04 Jan 2003, Marco Shaw [EMAIL PROTECTED] wrote: | What I want: | Take file.txt and *strip* out foo and replace with bar, *but* I | don't want to redirect to a tmp file or anything: I would like one | command. | | Perl: | 1. perl -pi -e 's/foo/bar/g' file.txt | | SED, for example: | 1.

Re: Perl vs Shell: there's gotta be a way to...!

2003-01-04 Thread mklinke
Cameron, Slick little script ...good show! Regards, Mike Klinke On Sunday 05 January 2003 02:24, Cameron Simpson wrote: On 13:24 04 Jan 2003, Marco Shaw [EMAIL PROTECTED] wrote: | What I want: | Take file.txt and *strip* out foo and replace with bar, *but* I | don't want to redirect to

Re: Perl vs Shell: there's gotta be a way to...!

2003-01-04 Thread Cameron Simpson
On 03:50 05 Jan 2003, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: | Slick little script ...good show! Hope you find it useful. Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ IE 5.0 introduces nothing but a bunch of DHTML extensions you'd never stoop