Eliminar datos duplicados en orden diferente

Raul Veleiro A (en Yahoo) raul_veleiro en yahoo.es
Mie Oct 31 16:43:58 GMT 2007



Andrés Flórez <andrewflorez en gmail.com> escribió:  Hola a todos:

tengo otra pregunta con respecto a manjeo de texto:

tengo una lista por ejemplo

LC2 LC4
MP47 LC7C
LC6B HELICASE
HELICASE LC6B
REL1 LC5
REL1 LC4
MRP2 MP67
LC6A LC8
RET1 MP47
LC4 LC2

El asunto es que tengo por ejemplo este dato

LC2 LC4
LC4 LC2

pero en ultimas equivale lo mismo,,, necesito eliminar uno de ellos

es algo como

si A y B = B y A

eliminar B y A

o algo así

Necesito eliminar los que esten duplicados en orden reverso

Gracias de antemano






-- 
Andrés F. Flórez

Associate Researcher
PECET.
Universidad de Antioquia.
Medellín-Colombia.
Carrera 53 # 61 - 30
Phones: (574) 210 6507 / 02
Fax: (574) 210 6511
Cell phone: 3103462268

-- 
ubuntu-es mailing list
ubuntu-es en lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-es
  
Hechale un ojo al comando "uniq"...
   
  $ man uniq
Reformatting page.  Please Wait... done
  User Commands                                             uniq(1)
  NAME
     uniq - report or filter out repeated lines in a file
  SYNOPSIS
     uniq [-c | -d |  -u]   [-f fields]  [-s char]  [  input_file
     [output_file]]
       uniq  [-c  |  -d  |  -u]   [-n]  [   +   m]   [   input_file
     [output_file]]
  DESCRIPTION
     The uniq utility will read an input file comparing  adjacent
     lines,  and write one copy of each input line on the output.
     The second and succeeding copies of repeated adjacent  input
     lines will not be written.
       Repeated lines in the input will not be detected if they are
     not adjacent.

  Saludos.


Raul

Solo hay 10 tipos de personas en el mundo;
Los que entienden binario y los que no:
Use Linux-Ubuntu !
 _o)
 /\\
 \_V
       
---------------------------------

¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: https://lists.ubuntu.com/archives/ubuntu-es/attachments/20071031/577f89fd/attachment.htm 


Más información sobre la lista de distribución ubuntu-es