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
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
delete string in a text file leaving the first occurrence
View Single Post in the UNIX and Linux 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
Find Mark Thomas's past nominations received
Find Mark Thomas's present nominations given