Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Delete lines with date older that a week.

    General Discussion
    2
    3
    142
    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 Prather
      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 Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        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
        • Referenced by  Alan Kilborn Alan Kilborn 
        • Alan Kilborn
          Alan Kilborn last edited by

          Discussion continued in a NEW thread.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors