Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help! Need TextEditor...

0 views
Skip to first unread message

Petersen, Vegard Krog

unread,
Oct 6, 2008, 6:29:30 AM10/6/08
to

..to the this: In a text file with 3.251.662 lines let me easy mark all
lines from 1 to 1.000.000 and then save these lines as a new file.

I have NotePad++ (http://notepad-plus.sourceforge.net/) and it might be
able to do this, but I can't figure out how. Markingd an crolling with
the mosue will takes *ages*!

Can anybody help? Needed the answer yesterday... ;-)

Thanks in advance!

Vegard Krog Petersen, Norway

rich

unread,
Oct 6, 2008, 7:54:32 AM10/6/08
to

Possibly vim will do the job (although it is horrible to use)
http://www.vim.org/

A review of editors (mixture of payware and freeware)
http://www.donationcoder.com/Reviews/Archive/TextEditor/index.html


--
rich

Bjorn S.

unread,
Oct 6, 2008, 7:56:43 AM10/6/08
to
Petersen, Vegard Krog wrote in
<gccpaa$h1h$1...@registered.motzarella.org>
(Mon, 06 Oct 2008 12:29:30 +0200):

>
>..to the this: In a text file with 3.251.662 lines let me easy mark all
>lines from 1 to 1.000.000 and then save these lines as a new file.
>
>I have NotePad++ (http://notepad-plus.sourceforge.net/) and it might be
>able to do this, but I can't figure out how. Markingd an crolling with
>the mosue will takes *ages*!

Use the keyboard. In notepad+++, CTRL+G (go to line) enter 1000001.
Then hold down CTRL+SHIFT and press HOME key. Then copy (or cut), open
new file, past.

--
All the best,
Bjorn


Bjorn S.

unread,
Oct 6, 2008, 8:21:32 AM10/6/08
to
Bjorn S. wrote in <nvuje4pqk7agkli8m...@4ax.com>
(Mon, 06 Oct 2008 13:56:43 +0200):

Or if you have multiple files, you could use a stream editor like SED
to "print" any number of lines.

See Eric Pement's site for more info:

sed . . . the stream editor
http://student.northpark.edu/pemente/sed/

and his compiled:
USEFUL ONE-LINE SCRIPTS FOR SED
http://sed.sourceforge.net/sed1line.txt

--
All the best,
Bjorn S.

Petersen, Vegard Krog

unread,
Oct 6, 2008, 8:57:04 AM10/6/08
to
Bjorn S. skrev:

Bjorn: You're my hero! :-) Big thanks

regards from Vegard Krog Petersen, Norway

0 new messages