Sort utility other than SORT.EXE?

R

Rick

Hope someone can help with this. I have a comma-delimited text file
with some 200,000 rows. Each row is 186 chars long. I need to have
these rows sorted, and then sent to another file, on both a primary and
a secondary sort. Is there a utility that can do this? The primary
sort needs to be on the last comma-delimited column (position 179-186),
and the secondary sort needs to be on the comma-delimited column that
lies between position 137-150.

I can't think of any way to do this. Thanks for any help.
 
D

Daniel

You can load .txt files into Excel and sort there,
if you are not familiar with this give it a go anyway,
Excel takes care of it all quite intuitively.

regards

Daniel
 
R

Rick

Ouch! I figured it was the perfect solution ... until Excel told me
"File not loaded completely". Apparently Excel can't open a file
containing more than 65,536 rows. Hmmm...
 
P

Pegasus \(MVP\)

Rick said:
Hope someone can help with this. I have a comma-delimited text file
with some 200,000 rows. Each row is 186 chars long. I need to have
these rows sorted, and then sent to another file, on both a primary and
a secondary sort. Is there a utility that can do this? The primary
sort needs to be on the last comma-delimited column (position 179-186),
and the secondary sort needs to be on the comma-delimited column that
lies between position 137-150.

I can't think of any way to do this. Thanks for any help.

Are you saying that your columns are of fixed width? If so, what is the
starting location and width of each columnn?
 
R

Rick

Yup, they're fixed width.

The primary sort needs to be on the 'column' that starts at position 179
and is 8 chars wide (this is the last column), and the secondary sort
should start at position 137 and is 13 chars wide.

Thanks for any help.
 
B

Bob I

Excel 2007 can do it ;-)
Ouch! I figured it was the perfect solution ... until Excel told me
"File not loaded completely". Apparently Excel can't open a file
containing more than 65,536 rows. Hmmm...
 
S

St

Rick said:
Hope someone can help with this. I have a comma-delimited text file
with some 200,000 rows. Each row is 186 chars long. I need to have
these rows sorted, and then sent to another file, on both a primary and
a secondary sort. Is there a utility that can do this? The primary
sort needs to be on the last comma-delimited column (position 179-186),
and the secondary sort needs to be on the comma-delimited column that
lies between position 137-150.

I can't think of any way to do this. Thanks for any help.

Try to use MySQL.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top