Discussion: combining files
Afficher un message
Vieux 07/09/2007, 15h53   #4
Glenn Jackman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: combining files

At 2007-09-07 08:58AM, "gin_g" wrote:
> I have several text files which in which many of the files ending
> records overlap with the beginning records of another file. I'd like
> to combine two of the files so that the records are continuous, and
> this means that the overlap in one of the files needs to be removed.
> What's a good way to do this?


At 2007-09-07 09:02AM, "Miles" wrote:
> cat file1 file2 | sort -u


At 2007-09-07 09:06AM, "Jeroen van Nieuwenhuizen" wrote:
> sort file1.txt file2.txt | uniq


How about:
sort -u file1 file2

--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry
  Réponse avec citation
 
Page generated in 0,04486 seconds with 9 queries