Community
    • Login

    can I just load first few lines using notepad++?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • oa klkO
      oa klk
      last edited by oa klk

      just like header command in linux

      $header 10 largefile.txt
      

      I only want to load first 10 lines into notepad++

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @oa klk
        last edited by

        @oa-klk ,

        Notepad++ is a text editor. It edits the whole text file.

        There is no linux command header. The actual command is head, and it only displays a part of a file, not edits the file. Notepad++ is for editing, not just for displaying to the console.

        If all you want is to keep just the first 10 lines in your file, then delete everything else and save (!!!but then the original file will be overwritten with just the 10 lines, and nothing else!!!).

        If all you care about editing is in the first 10 lines, then just load the whole file and only edit those first 10 lines. If it really bothers you to see the other lines, you can select the lines you want to hide, and then hit View > Hide Lines (or Alt+H)

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors