- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remove consecutive duplicated lines from a file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2019 03:12 AM
11-06-2019 03:12 AM
Hello,
I need an help in order to remove some duplicated lines from a text file.
######### INPUT FILE ###########
ABC
CDE
FGH
FGH
ABC
ABC
ABC
FGH
CDE
CDE
#####################################
DESIRED OUTPUT
######### OUTPUT FILE ###########
ABC
CDE
FGH
ABC
FGH
CDE
#####################################
I do not need to order the file. buto only to remove duplicated lines if they are consecutive.
Thanks in advance for your help.
Regards,
Bernardo
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2019 06:25 AM - edited 11-06-2019 06:26 AM
11-06-2019 06:25 AM - edited 11-06-2019 06:26 AM
Solutionnot really a HP-UX sepcific question - there are lots of ways to do this and some simple google-fu would have found some...
This selection of answers was near the top of my search response:
I am an HPE Employee