in reply to Strange MySQL Problem
While all of those things could've been done in Perl, it's a lot quicker to do it in the native client. And, the reason I wrote the second step as a shell script around commandlines is that it's easier to do
than it is for me to open the file, loop through all the lines, and write the file back out. Why make it harder for yourself?#!/bin/sh foreach f in *.xsv loop perl -pi -e 's/asdf/jkl;/g' $f endloop
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strange MySQL Problem
by tyndyll (Novice) on Aug 18, 2004 at 09:01 UTC | |
by dragonchild (Archbishop) on Aug 18, 2004 at 14:07 UTC |