Community
    • Login

    Delete lines with date older that a week.

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 624 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.
    • Dennis PratherD
      Dennis Prather
      last edited by

      I have a .csv file that has the following date field format 07/07/21.
      I need to delete all lines with dates older than a week.
      How can I accomplish that?

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Dennis Prather
        last edited by Alan Kilborn

        @Dennis-Prather

        You’d have to write some code for that.
        The code could be via a scripting plugin inside Notepad++ (in which case this is an on-topic conversation for this forum) or a programming language external to Notepad++ (that would be an off-topic conversation best had on another site, if you need more help).

        If you want to do it with a scripting language plugin, and need help on that, you’d really need to say more about your data – like, does the date come at the start of every line of the file, or? You really should have a look at THIS.

        1 Reply Last reply Reply Quote 1
        • Alan KilbornA Alan Kilborn referenced this topic on
        • Alan KilbornA
          Alan Kilborn
          last edited by

          Discussion continued in a NEW thread.

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