|  | Posted by WCB on 06/19/05 15:02 
Lauri Raittila wrote:
 > in alt.html, wcb wrote:
 >> I am using Linux and Bluefish.
 >> I have a lot of long documents I want html-ize.
 >
 > Learn perl.
 >
 >> I am looking for some sort of little Linux utility
 >> where I could insert <br>'s into an existing file.
 >
 >> Is there such a quick and dirty beastie for Linux?
 >
 > sed
 > man sed
 >
 >> Most utilities I see seem to be for Windows.
 >
 > Because nobody needs any *extra* utilies for something that simple in
 > linux... there is some other tool as well, even more simple, but I don't
 > recall what it is called...
 >
 >> I am looking for something that can do batch
 >> processing if possible, doing an entire folder
 >> at one shot.
 >
 > sed -i 's/$/<br>/g;' *.html
 > (if I got it right...)
 
 But it still lacks recursive abilities.
 I played with SED a bit.  It still seems
 to need a script to walk a tree.
 
 
 Generally, it seems I need a shell script and a command
 script whether it be SED or Perl, or even Rexx.
 
 
 for
 some command
 done
 
 I need to figure this out for the present
 directory, all subdirecties, and all
 files in them.
 
 I could set up the command as a script
 and call that.
 
 So its back to Bash manuals....
 
 Ohhh this would be so easy if Perl had a -R switch.
 Or Sed or Awk.
 --
 When I shake my killfile I can hear them buzzing.
  Navigation: [Reply to this message] |