hi, I'm using 3.8, and I hate to bother, but I have spent two days on the
net trying to find the answer to this problem.
I am using 'find' to batch file a sed search and replace. Sed, of course,
outputs to stdout, the problem I am having is finding the correct syntax so
that I can change the extension of the input file to create the new output
file. For example:
Find . -name "*.htm" -exec 'sed s/old/new/' > '{}'.new
so if the input file happens to be smith.htm, then '{}' would be smith.htm
and the idea is that the output filename for the sed command would create a
new output file called smith.htm.new.
this of course isn't working.
any help please? thanks.
david
incomex@hotmail.com
_________________________________________________________________
PC Magazines 2007 editors choice for best Web mailaward-winning Windows
Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_...
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Andrew Morton | Re: 2.6.23-rc4-mm1 |
| Rafael J. Wysocki | Re: Slow DOWN, please!!! |
| Artem Bityutskiy | Re: [RFC PATCH 05/26] UBIFS: add file-system build |
git: | |
| Benjamin Collins | Re: git-gui hangs on read |
| Jon Smirl | ! [rejected] master -> master (non-fast forward) |
| Jakub Narebski | Re: Corruption: empty refs/heads in otherwise filled repo: cannot clone? |
| Johannes Schindelin | Re: [ANNOUNCE] GIT 1.5.4 |
| Mattieu Baptiste | Re: Real men don't attack straw men |
| Todd Pytel | IDE or SCSI virtual disks for VMWare image? |
| Douglas Maus | NFS mount by non-root |
| Joel Wiramu Pauling | Re: Suggested PF Setup when using BitTorrent? |
| Stephen Tweedie | [ANSWER] Re: NR_INODE / NR_FILE |
| Bill Bogstad | Re: A question about ramdisks |
| Jim Winstead Jr. | FAQ - Where is it? |
| Steve M. Robbins | another adduser utility available |
| types of kernel | 49 minutes ago | Linux kernel |
| magical mounts | 17 hours ago | Linux kernel |
| Problem in scim in Fedora 9 | 18 hours ago | Linux general |
| The new Western Digital power saving drives | 18 hours ago | Hardware |
| Battery Maximizer Software | 1 day ago | Linux kernel |
| windows folder creation surprise | 1 day ago | Windows |
| Firewall | 2 days ago | OpenBSD |
| IP layer send packet | 2 days ago | Linux kernel |
| dtrace for linux available | 3 days ago | Linux kernel |
| Unable to mount ramdisk image using UBoot while upgrading to 2.6.15 kernel for a MPC8540 based target | 3 days ago | Linux kernel |
