how to show only unique words between two files
Hi, i have to files
Quote:
Quote:
i was trying to get it with diff, comm, sort, uniq, grep, awk, sed but no luck, if anyone have an idea how to do it please advice Thanks |
Hello,
Have a look at wiggle. This tool can do word based comparison. The different word will be put between <<<-- word-->>>. Kind regards, Eric |
thanks EricTRA, but is there a way to do it with shell commands
|
Hello,
I'm sure there will be but it will involve some scripting, like in the following thread I found, which has a Python and Awk example. Is there a special reason why you don't want to install a tool but prefer writing a script? Besides the obvious reason of learning? Kind regards, Eric |
This is probably goofy, but you could put every word on it's own line:
Code:
$ cat file1 |
i want to include this code in a shell script that will be use in a different machines, it's better to make it run with the basic linux shell commands.
thanks akelder, this what i was looking for, i pipe the commands and it work fine: Quote:
|
All times are GMT -5. The time now is 12:27 PM. |