![]() |
![]() |
![]() |
||||
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 |
Guest
Posts: n/a
|
Looking for a programmer to do THIS for me...
Hey guys,
I need a script that will look in a text file for all the 7 letter lines and put them on another text file. budget --> 20-25$ thanx in advance guys! ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
|
Save your money. The following should do what you want. I didn't try running it so there may be typos.
Code:
$input_file = '/path/to/input/file'; $output_file = '/path/to/output/file'; open(I,"<$input_file") || die "Cannot read $input_file: $!\n"; open(O,">$output_file") || die "Cannot write $output_file: $!\n"; while(<I>) { chomp; $_ =~ s/^\s+//; $_ =~ s/\s+$//; if(length($_) hahahaha 7) { print O $_."\n"; } } close I; close O;
__________________
"Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats." --H.L. Mencken |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jul 2003
Location: Grand Central
Posts: 2,948
|
line 7:
if(length($_) hahahaha 7) { what does "hahahaha 7" mean? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jun 2003
Location: Gooch city
Posts: 9,527
|
j script
__________________
Someone finds you... 2007 PS: Nationalnet is the best host I've ever had. And i tried alot of them. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
Quote:
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
|
Quote:
= = SpaceAce |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Guest
Posts: n/a
|
hi netrodent, can you please contact me?
thanx in advance ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Jun 2003
Location: AssTown
Posts: 674
|
I can code you an exe that runs on your own puter to do this for free, got any examples of the text you wan't filtering?
It would only take a few mins to write ![]()
__________________
I sale lube |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Jul 2003
Location: Grand Central
Posts: 2,948
|
Thanks guys for explaining to me about the two equal signs, and nice bit of code there NetRodent
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Guest
Posts: n/a
|
Quote:
please contact me ![]() |
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
So Fucking Banned
Join Date: May 2003
Location: San Diaygo, CA
Posts: 384
|
come on people... basic stuff
PHP Code:
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Guest
Posts: n/a
|
Quote:
|
|
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
|
Quote:
__________________
"Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats." --H.L. Mencken |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: Oct 2002
Location: NJ
Posts: 1,215
|
mang, if ya still need this, aim: wreck3d
__________________
tom at ryphs dot com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Join Date: Jun 2003
Location: AssTown
Posts: 674
|
Quote:
Post me an example of the text to [email protected] with a brief explanation of how you want to filter the text and I'll make you a program to do it.
__________________
I sale lube |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Guest
Posts: n/a
|
hey guys
netrodent helped me with the script and its working now thank you all of you ![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
Confirmed User
Join Date: Jun 2003
Location: AssTown
Posts: 674
|
Quote:
![]()
__________________
I sale lube |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
web
Join Date: Dec 2001
Location: On icq: 85-483-060
Posts: 9,533
|
netrodent - care to share the goods (once again) ;) ?
|
![]() |
![]() ![]() ![]() ![]() ![]() |