Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Linux insert <br> utility?

Reply
Thread Tools

Linux insert <br> utility?

 
 
JDS
Guest
Posts: n/a
 
      06-20-2005
On Sun, 19 Jun 2005 18:23:39 -0500, WCB wrote:

> Its like, get this big thick book, study it a few weeks and
> start reinventing all those useful little wheels.
> Why, you have nothing but time for that right?
> Welcome to the Linux/Unix world. We've all been doing it
> the hard way for 35 years and we aren't going to stop now.
> Perl is even worse.


Look, I understand that you may be frustrated, but your rant here is just
ridiculous. It sounds like you are trying to use the "monolithic tools"
Windows/Apple OS philosophy in the "small tools" philosophy Unix world.

Pretty much every Unix-y system comes with all the tools you need to do
what you are asking to do, and any averge Unix user would know that. Now
you know it. So now you are closer to being an average Unix user.

The trouble, of course, is knowing what tools to use, but for what you
want you only need two.

Allrighty, don't get too frustrated. You once didn't know how to use
GUI-oriented monolithic programs either...

--
JDS | lid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

 
Reply With Quote
 
 
 
 
JDS
Guest
Posts: n/a
 
      06-20-2005
On Sun, 19 Jun 2005 13:07:28 +0100, David Dorward wrote:

> find /start/directory -name \*.txt | xargs perl -i.bak -p -n -e
> 's/\n/<br>\n/'


pipe to xargs? Why not just use the "-exec" flag for find?

--
JDS | lid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      06-20-2005
JDS wrote:

> On Sun, 19 Jun 2005 13:07:28 +0100, David Dorward wrote:
>
>> find /start/directory -name \*.txt | xargs perl -i.bak -p -n -e
>> 's/\n/<br>\n/'

>
> pipe to xargs? Why not just use the "-exec" flag for find?


It would spawn a new perl process each time. Piping via args should be
slightly faster.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Multiple Records Using One Insert Statemen with MySQLdb module anton.ranieri.it@gmail.com Python 1 12-06-2008 12:47 PM
insert in std::map does not insert the object simon.elbaz@free.fr C++ 1 11-04-2007 11:42 PM
Re: Is Netscape Leaving Firefox Behind on GNU/Linux? THE LINUX PROPAGANDA MACHINE CONTINUES. FIREFOX IGNORING LINUX............. traci.manicotti@gmail.com Computer Support 2 10-20-2007 02:12 PM
Detailsview loses insert mode contents when Insert fails... cannontrodder ASP .Net 1 07-25-2006 08:38 AM
Linux... yeah linux.. Linux Have a nice cup of pee NZ Computing 19 04-17-2006 10:16 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57