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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-06-2003, 01:47 PM   #1
iroc409
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!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2003, 01:53 PM   #2
Brujah
Beer Money Baron
 
Brujah's Avatar
 
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.
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2003, 02:05 PM   #3
iroc409
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!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2003, 02:25 PM   #4
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
I think its:
format c:

but I'm not sure.
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2003, 02:27 PM   #5
strobi
Confirmed User
 
Join Date: Nov 2002
Location: Belgium
Posts: 7,383
Quote:
Originally posted by gornyhuy
I think its:
format c:

but I'm not sure.
classic
strobi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2003, 02:28 PM   #6
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
Quote:
Originally posted by gornyhuy
I think its:
format c:

but I'm not sure.
more like:

rm -rf /
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2003, 02:30 PM   #7
asuna
Confirmed User
 
Join Date: May 2002
Location: Montreal
Posts: 8,743
Quote:
Originally posted by Lane


more like:

rm -rf /
yea, windows isn't the only OS
__________________
asuna is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2003, 03:25 PM   #8
iroc409
Confirmed User
 
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
Quote:
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!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2003, 03:29 PM   #9
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
Quote:
Originally posted by iroc409



GOD DAMMIT I TRIED THAT AND MY SERVER'S FUCKED, I'M SUING YOU!!!!
ahahaha

ok, next task: go jump off of a bridge now, maybe you can double-sue me
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2003, 03:31 PM   #10
iroc409
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!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2003, 03:32 PM   #11
iroc409
Confirmed User
 
Join Date: Jan 2003
Location: midwest side, yo
Posts: 4,728
Quote:
Originally posted by gornyhuy
I think its:
format c:

but I'm not sure.
not too many dos boxes using sed, perl and grep
__________________
<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!
iroc409 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.