On Tue, May 28, 2002 at 03:12:50PM -0400, Rick Pasotto wrote:
| On Tue, May 28, 2002 at 04:06:33PM -0300, O Senhor wrote:
| >   How can i delete equal lines from a file, without sort it?
| >   If i use sort -u, the command clean up the repeat lines, but sort my
| > file (ascendent). I don't want this. I need my file in original form.
| 
| It's fairly trivial to determine if adjacent lines are identical but if
| they are scattered throughout the file then it becomes much more
| difficult.

The other difficulty is figuring out which of the original locations
to keep and which to remove.  If they're all adjacent it isn't an
issue.  Have you (O Senhor) decided how that should be handled?

-D

-- 

(A)bort, (R)etry, (T)ake down entire network?
 
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg

Attachment: pgpDxwTGSQNVp.pgp
Description: PGP signature

Reply via email to