Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

Free Text Editor wanted that...

Status
Not open for further replies.

Prosperous

Level 9
Legacy Exclusive Member
Joined
Feb 19, 2003
Messages
3,059
Reaction score
5
Hi,

Does anyone of you know of a free text editor (Windows based) software that lets one sort words/lines by length? Potentially for 100,000+ lines/words. Or does anyone have a Macro for Word for me that does the trick? I downloaded 'NotePad SX' that allows for sorting like that, but it can't handle the huge TXT files I am trying to import/open.

Thanks in advance,
Rob
 
Dynadot - Expired Domain Auctions

Prosperous

Level 9
Legacy Exclusive Member
Joined
Feb 19, 2003
Messages
3,059
Reaction score
5
Anyone?

I got some suggestions, but all those recommended software progs seem to be capable of is sorting words/lines alphabetically, but that's not what I need, I need the text to be sorted by word/line length.
On one of the other forums, someone recommended a database progam rather than a text editor for this, but that too would have to be a free one preferably plus I am not sure how easy I could sort text by line length in it, as I am not familiar with databases and how to build 'em/manage them, and I am not really interested in a steep learning curve for something as (I'd think?) simple as sorting words/lines by length?

Anyone?

.
 

Gray

Level 4
Legacy Platinum Member
Joined
Oct 28, 2004
Messages
201
Reaction score
0
You mean like this?

ChatA.net Request Price
ChatE.net Request Price
ChatID.com Request Price
EzChat.net Request Price
CopChat.com Request Price
BizChats.com Request Price
ChatCity.org Request Price
ChatClan.com Request Price
ChatFest.com Request Price
ChatPays.com Request Price
ChatTool.com Request Price
CorpChat.com Request Price
AudioChat.net Request Price
BoardChat.com Request Price
ChatDates.com Request Price
ChatGroup.org Request Price
ChatOnNet.com Request Price
ChatTooGa.com Request Price
ClassChat.com Request Price
EChateaux.com Request Price
BrokerChat.com Request Price
ChatAccess.com Request Price
ChatGroups.org Request Price
ChatPlanet.org Request Price
ChatsPorts.com Request Price
ChatWorlds.com Request Price
ClientChat.com Request Price
AdultsChats.com Request Price
ChatContact.com Request Price
ChatterFest.com Request Price
FreeChatCam.com Request Price
ChatsHopping.com Request Price
ChitchatClub.com Request Price
FreeChatRoom.net Request Price
CelebrityChat.net Request Price
ChatUnlimited.com Request Price
ChatWorldwide.com Request Price
CyberChatCafe.com Request Price
DutchAthletes.com Request Price
ChatterGalErie.com Request Price
FamilyChatrooms.com Request Price
FrenchAttorneys.com Request Price
BeachAttractions.com Request Price
ChateauChampagne.com Request Price
Adult-Chat-Network.com Request Price


just wrote this in javascript, gets bogged down over about 50kb.


<html>
<head>
<title></title>
</head>

<body>

<script language="javascript">

function sort() {
changes = true
while (changes) {
tfile = document.form1.thefile.value
lfile = tfile.length
line2 = "a"
sfile = ""
changes = false
while((line2.length) > 0) {
line1 = tfile.substring(0, tfile.indexOf('\n'))
tfile = tfile.substring(tfile.indexOf('\n')+1, lfile)
line2 = tfile.substring(0, tfile.indexOf('\n'))
if (line1.length > line2.length) {
sfile+= line2
efile = tfile.substring(tfile.indexOf('\n'), lfile)
tfile = line1 + efile
if (line2.length > 0) {
changes = true
}
}
else {
sfile+= line1
}
}
document.form1.thefile.value = sfile + tfile
}
}

</script>

<form name="form1">
<textarea rows=20 cols=100 name="thefile">
copy file
here and
press
sort
</textarea>
</form>
<input type="submit" value="sort" onclick="sort()">

</body>
</html>
 

Prosperous

Level 9
Legacy Exclusive Member
Joined
Feb 19, 2003
Messages
3,059
Reaction score
5
Hey, that's cool, works like a charm for shorter lists. Still not for huge lists of, say, 100,000 words/lines or so, but thanks, I do find it useful!


Best,
Rob
 

Gray

Level 4
Legacy Platinum Member
Joined
Oct 28, 2004
Messages
201
Reaction score
0
no prob. give me a few days to speed it up, I"ll have to look up how to do quicksort
then larger lists should work too.
 

Prosperous

Level 9
Legacy Exclusive Member
Joined
Feb 19, 2003
Messages
3,059
Reaction score
5
Awesome. Let me/us know here when you have it ready, please.


Best,
Rob
 

Prosperous

Level 9
Legacy Exclusive Member
Joined
Feb 19, 2003
Messages
3,059
Reaction score
5
Thanks, but from what I can tell none of those offer sorting by word/line length. That's the problem with most of these (free) text editors.. :-( That's why I am asking for specific solutions, i.e. ones that people can recommend themselves because they know for sure the software offers what I need.
 

Gray

Level 4
Legacy Platinum Member
Joined
Oct 28, 2004
Messages
201
Reaction score
0
finally did some mods to the sort program, it sorted 10,000 domains in 1 minute and now it can group by extension. Should work on your BIG name lists!

http://www.freewebs.com/namesort/
 

Prosperous

Level 9
Legacy Exclusive Member
Joined
Feb 19, 2003
Messages
3,059
Reaction score
5
Thanks, I appreciate you looking into this more.
However, it does not work for me; neither the sorting by length, nor by extension (great feature, btw!).
First I thought maybe it was a browser-settings thing, but your previous of the script works just fine (as long as not too much text has to be sorted) but no results at all for me with your new version, be it with just a few words to be sorted, or tons of them.

Best,
Rob
 

Gray

Level 4
Legacy Platinum Member
Joined
Oct 28, 2004
Messages
201
Reaction score
0
What browser are you using? Been tested in IE.
 

Prosperous

Level 9
Legacy Exclusive Member
Joined
Feb 19, 2003
Messages
3,059
Reaction score
5
Yeah, I use IE6.

I had noticed, you 'sorting page' is at FreeWebs.com. FreeWebs shows as a 'restricted site' in my browser's Internet Options 'Security' tab. I then deleted FreeWebs from the list of restricted sites, but that didn't solve my problem. So I then saved the sorting page to my HD and opened that version in my browser, and then it works fine for me. :) THANKS!!

I'll now go ahead and try it with huge lists and will report back here.

Best,
Rob
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 1) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

MariaBuy

Upcoming events

New Threads

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom