• Login
Community
  • Login

sort file by date hour like 2019-07-30 15:06:33

Scheduled Pinned Locked Moved General Discussion
4 Posts 4 Posters 1.9k 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.
  • P
    pcouas
    last edited by Sep 30, 2019, 8:26 AM

    Hi,

    I want sort an log file by date hours
    I have tried “Sort line asending by integer” without result, an idea ?
    Regards

    D 1 Reply Last reply Sep 30, 2019, 10:30 AM Reply Quote 0
    • R
      rinku singh
      last edited by Sep 30, 2019, 8:50 AM

      not sure but try textfx plugin

      1 Reply Last reply Reply Quote 0
      • D
        dinkumoil @pcouas
        last edited by Sep 30, 2019, 10:30 AM

        @pcouas

        You could use the NppColumnSort plugin for this task. This plugin allows to sort a document by the content of an unlimited number of fields that can be defined by their starting column and width.

        The plugin was part of the plugin list of the old Plugin Manager (up to v7.5.9) but it is not part of the official plugin list of new Plugins Admin (v7.6 and higher). You can download it from >>> this GitHub repo <<< as 32 bit and 64 bit release.

        1 Reply Last reply Reply Quote 1
        • G
          guy038
          last edited by guy038 Oct 21, 2019, 10:50 AM Oct 21, 2019, 12:54 AM

          Hello @pcouas and All,

          Could you show us a small part of your log file, with the indication of the date/time fields to be sorted ?

          I’m pretty sure that, using a regex S/R, we could be able to insert a temporary re-organized date/hour field, at beginning of each line, which should be easy to sort, alphabetically ;-))

          See you later,

          Best Regards,

          guy038

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