|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
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
__________________
<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! |
|
|
|
|
|
#2 |
|
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
if you don't find what you're looking for, get rpl and use it.
__________________
|
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
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! |
|
|
|
|
|
#4 |
|
Chafed.
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
|
I think its:
format c: but I'm not sure. |
|
|
|
|
|
#5 | |
|
Confirmed User
Join Date: Nov 2002
Location: Belgium
Posts: 7,383
|
Quote:
|
|
|
|
|
|
|
#6 | |
|
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
Quote:
rm -rf /
__________________
|
|
|
|
|
|
|
#7 | |
|
Confirmed User
Join Date: May 2002
Location: Montreal
Posts: 8,743
|
Quote:
__________________
|
|
|
|
|
|
|
#8 | |
|
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
Quote:
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! |
|
|
|
|
|
|
#9 | |
|
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
Quote:
ok, next task: go jump off of a bridge now, maybe you can double-sue me ![]()
__________________
|
|
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
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! |
|
|
|
|
|
#11 | |
|
Confirmed User
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
|
Quote:
__________________
<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! |
|
|
|
|