On Mon, Jun 04, 2007 at 02:25:00PM +0200, Hannah Schroeter wrote:newlines in file names are a pretty infrequent occurrence. In case this could happen, I would do it in perl and get rid of the sed entirely. #! /usr/bin/perl use File::Find; sub transform { my $filename = shift; open my $fh, '<', $filename or die "Problem with $filename: $!\n"; open my $fh2, '>', "$filename.new" or die "Problem with $filename.new: $!\n"; while (<$fh>) { s/old/new/; print $fh2 $_ } } find(sub { return unless -f $_; return unless m/\.htm$/; transform($_); }, '.'); or something like this...
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Tim Tassonis | reiser4 for 2.6.27-rc1 |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
| Jarek Poplawski | Re: [BUG] New Kernel Bugs |
git: | |
| Junio C Hamano | Re: Comments on recursive merge.. |
| Ken Pratt | Re: pack operation is thrashing my server |
| Junio C Hamano | [ANNOUNCE] GIT 1.5.4 |
| Chris Hoffman | git-daemon on Windows? |
| Peter Zijlstra | [BUG?] sendfile / distcc |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Mark Lord | Re: 2.6.25-rc8: FTP transfer errors |
| Ilpo Järvinen | Re: [PATCH 2/4] tcpv6: trivial formatting changes to send_(ack|reset) |
| Richard Stallman | Real men don't attack straw men |
| Diana Eichert | OpenBSD on decTOP? |
| Jeff Ross | U320 Drive on U160 controller? |
| Sebastian Reitenbach | problems with hoststated and relayd |
