On Tue, Aug 08, 2006 at 03:24:58PM -0400, Seth Dillingham wrote:
> Here's a perl example that shows how it should work.
> 
> Create a test file called test.txt. Put a few lines in it, just one word per
> line (to keep it short and simple). Save it at ~/Desktop/test.txt
> 
> Open terminal, and run these two lines:
> 
> cd ~/Desktop
> perl -pi -e 's/(.*)/($1)/' test.txt

That's only doing a single replacement per line, because you left off the
/g modifier.

Try this instead:

perl -pi -e 's/(.*)/($1)/g' test.txt


It's not a bug.


Ronald

-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to