The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Delete repeated rows from a file
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Delete repeated rows from a file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
04-08-2008
era
Herder of Useless Cats (On Sabbatical)
Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
You redirect to another file, then move that file on top of the old file. Read a basic Unix book.
Code:
command oldfile>newfile; mv newfile oldfile
era
View Public Profile
Visit era's homepage!
Find all posts by era