![]() |
text duplicator?? help
hey guys,
Say u have a text file with lines: a b c d e f g h are there any programs that can duplicate this, say 10,000 times, so now ull have 10000 a's, 10k b's, 10k c's, etc. thanks |
bump......
|
PHP code
|
KNow of any?
|
copy and paste 10,000x
|
bump.. come on
|
no program out there does this?
|
bump again..thanks
|
PHP Code:
PHP Code:
|
bump again
|
Hey Bump People
|
Quote:
|
that code has a lil problem.. my original file has 1,000 lines, and i wanna dupilicate it to X1000
How will that code work if your original text file is 1000 lines? I need code that can read from text file.. |
Ill pay someone to code this for me!
|
PHP Code:
|
Sorry
Sorry not that code , this is what you need
PHP Code:
|
wizzart how do i run this??
|
Open you HTML editor and paste this last code and save file as test.php
Open notepad write some text and save file as txtfile.txt Upload that 2 files to your server and go to http://yoursite.com/test.php and you will see result. ;) |
script works ok bro.. except it doesnt line break..
Example i put in a b it returns text file as a b a b instead of a b a b |
im probably asking for me too much but can this possible report the results in text file?
|
bump! can anyone help fix this errro
|
Quote:
PHP Code:
|
Quote:
|
error with that last script.. it doesnt work, it just reports one LINE, and in source code all i say is <br />
|
nobody can fix this? ill pay
|
bump again :( :(
|
Got a dedicated server with ssh login? Create the following script and run it with "sh <scriptname>"
Code:
cp /dev/null output.txt (There's probably a better way to loop 1,000 times but I'm too lazy to figure it out) |
Can you clarify what you want...
you have the following a b c d and you want 1000 lines of: a b c d Is that correct? |
Also... Do you just need to do this once? have a standalone script to do this? replace a function in some existing code?
|
Quote:
Code:
for x in `seq 0 999`; do cat input.txt >> output.txt; done |
hit me up, icq: 33385924 I'll hook it up for you for a few bucks...
|
here's the php:
Code:
<?php |
sed and awk are made for this kind of thing. don't even need a program, can do it on the command line.
Hell, even vi can do that. |
eheh jesus nobody can get this right?
your script worked with 2 lines.. then i loaded 2000 lines to be duplicated 1000 times each, and it crapped out.. Doesnt work.. this is getting ridiculous |
Quote:
sed and awk and vi.. wow makes lot of sense.. i got no clue what u mean buddy :helpme |
Quote:
|
All times are GMT -7. The time now is 01:38 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123