![]() |
grep, anyone?
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
|
if you don't find what you're looking for, get rpl and use it.
|
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 :thumbsup |
I think its:
format c: but I'm not sure. |
Quote:
|
Quote:
rm -rf / |
Quote:
|
Quote:
GOD DAMMIT I TRIED THAT AND MY SERVER'S FUCKED, I'M SUING YOU!!!! :mad: |
Quote:
ok, next task: go jump off of a bridge now, maybe you can double-sue me :1orglaugh |
i never thought of that!
better grab my parachute! :winkwink: |
Quote:
|
| All times are GMT -7. The time now is 09:27 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123