i forget how to do this... i have a lot of text repetitively that needs to be replaced in html, and if i remember right you can do that with grep and something else. basically i just need some numbers changed, i.e. '001' to '002', then '002' to '003', and so on. but it's annoying doing this 100 times in a document. thanks
grep, anyone?
Collapse
X
-
grep, anyone?
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>
icq: 1 7 6 4 2 0 9 6 0
Gallery templates for ONLY $25! w00t!Tags: None -
if you don't find what you're looking for, get rpl and use it.- Free Premium Domain Lists and Tools at Clickmojo.com
- For Sale: Obscenity.com
-
perl -p -i -e 's/001/002/g' file.txt
a programmind friend of mine happened to be online. you can also cat the file through sed, but that's not as clean.
if anyone else would like to know this
thanks for the reply tho
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>
icq: 1 7 6 4 2 0 9 6 0
Gallery templates for ONLY $25! w00t!Comment
-
Originally posted by Lane
more like:
rm -rf /
GOD DAMMIT I TRIED THAT AND MY SERVER'S FUCKED, I'M SUING YOU!!!!
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>
icq: 1 7 6 4 2 0 9 6 0
Gallery templates for ONLY $25! w00t!Comment
-
i never thought of that!
better grab my parachute!
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>
icq: 1 7 6 4 2 0 9 6 0
Gallery templates for ONLY $25! w00t!Comment
-
not too many dos boxes using sed, perl and grepOriginally posted by gornyhuy
I think its:
format c:
but I'm not sure.
<a href="http://www.iroc409.com/"><img src="http://www.iroc409.com/adv/120x60.gif" border=0></a>
icq: 1 7 6 4 2 0 9 6 0
Gallery templates for ONLY $25! w00t!Comment


Comment