Login/Register
  • Home
  • Community
  • Knowledge
  • Technical Docs
  • RWS Support Policy
  • Trados Studio Licensing Help
  • Login for Support
Back to Search Results

How can I find duplicate entries lines in the list of metadata

000022319 |5/24/2024 2:47 PM
Scope/Environment
Tridion Docs 14SP4
Symptoms/Context
You have a long *.txt metadata file with lots of lines and you suspect a couple of them to be duplicated.
Resolution
1. Open this file in Notepad++, then 'CTRL+A' and click 'shift+Tab' to align all to the left.
2. Then go to the Edit - Line operations - Sort Lines Lexicographically Ascending/Descending.
3. Then press "CTRL+F" to enable search window and paste "^(.*?)$\s+?^(?=.*^\1$)" regular expression to the 'Find what' field

regexp

4. Then as a result you will find a couple of lines standing next to each other

See example attached:

duplicate serach example
Root Cause
n/a
Reference
https://gateway.sdl.com/apex/communityknowledge?articleName=000011114
Attachments
duplicate search example.jpg

reg exp.jpg

Send Article Feedback
RWS Machine Translation Translation Software Language Services Content Management
All Contents Copyright © RWS.
COPYRIGHT PRIVACY POLICY COOKIE POLICY TERMS AND CONDITIONS