|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
On Thu, 23 Dec 2004 07:55:04 -0500, Michael D. Bevilacqua
<michael@bevilacqua.us> wrote:
>
> I did this creating a .t3mp file with the wanted output.
> This was an extra step I took because I wasn't able to get
> awk to write out to a file using '>', it would just create a
> zero length file. What am I doing wrong?
Mickael,
does the below bash give you the expected files?
for file in `grep -Frl 207.106.32.241 * | grep html$`; do
echo $file
done
If so then use sed if you get the expected results
for file in `grep -Frl 207.106.32.241 * | grep html$`; do
sed "s#"207.106.32.241#ancss.org#g" -i $file
done
If you want to make a back up, use
sed "s#"207.106.32.241#ancss.org#g" -i.ipnum $file
Alex
--
Check out Firefox, it makes browsing the internet fun again. Best of
all it's free.
http://www.mozilla.org
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|