The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
delete string in a text file leaving the first occurrence
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
delete string in a text file leaving the first occurrence
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
10-27-2006
Mark Thomas
Registered User
Join Date: Oct 2006
Location: Tampa, Florida
Posts: 14
Could you use 'uniq'?
Code:
uniq -u test.txt cat cattle bat battle mat matter fat fatter
Mark Thomas
View Public Profile
Visit Mark Thomas's homepage!
Find all posts by Mark Thomas