0

I am using notepad++ and I am trying to remove duplicates...

apple, green, supplier
banana, yellow, supplier
grapes, geen, supplier
apple, red, supplier
apple, brown, supplier
grapefruit, yellow, supplier

I would like to keep just the first instance of apple so the end result would look like this

apple, green, supplier
banana, yellow, supplier
grapes, geen, supplier
grapefruit, yellow, supplier

Anyone have an example?

1 Answer 1

1

Lets say you have it in a text file line by line you'd go through following steps:

  • Ctrl+F
  • Choose the Mark tab.
  • Search mode: Regular expression
  • Find what: ^apple
  • Alt+M to check Bookmark line
  • Click on Mark All

enter image description here

  • Click to the first instance of apple to clear the first mark.
  • Select from the menu Search > Bookmark > Remove Bookmarked Lines.
  • Ready ...
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.