Select range of lines in Notepad++

后端 未结 4 1004
醉话见心
醉话见心 2020-12-23 09:21

Is there a way to select range of lines in Notepad++? I would like to write two numbers - from and to, say: from 10000 to 25000.

I\'ve got this large MySQL dump fil

相关标签:
4条回答
  • 2020-12-23 09:25

    I don't know Notepad++, but as a quick solution, you can use

    perl -ne 'print if $. >= 10_000 && $. <= 25_000' < file.sql > some-lines.sql
    

    (The _ in numbers in Perl are just for legibility and can be omitted. It's like writing 10,000 in the US or 10.000 in Germany, but without the cultural confusion.)

    0 讨论(0)
  • 2020-12-23 09:31

    I was trying to figure the same thing out FOREVER! I finally figured it out. The closest answer I could get was CTRLg then ShiftPageUp.

    But if you want to select more and not the whole page do go to the last line your wanting and press CtrlShiftHome. That will select from where you are to top of your text. The same goes for CtrlShiftEnd will select from what line you are at to the last line.

    0 讨论(0)
  • 2020-12-23 09:32

    put your cursor at the start of line 10000 then press and hold the shift key use the scroll bar to go to line 25000 and Right click at the end of it, this will select all the lines between 10000 and 25000, also while pressing and holding the shift key you can hold and drag the Right click to change selection area

    0 讨论(0)
  • 2020-12-23 09:49

    Easiest way:

    1. Ctrl + G, go to line 10,000.

      • Menu > Edit > Begin/End select.

    2. Ctrl + G, go to line 25,000.

      • Menu > Edit > Begin/End select.

    You now have your range selected.

    Or, simply right click for "Begin/End select" option.

    0 讨论(0)
提交回复
热议问题