-
File comparasion.
This is not a SuSE question, but a general Linux question.
I have two bookmark files.
Let's call them file A and file B.
I want to compare the two files and import all bookmarks from file B, which
are not in file A, into file A.
How do I do that from a command line ?
Thanks
Henk
-
Re: File comparasion.
The carbonbased lifeform Henk Oegema inspired alt.os.linux.suse with:[color=blue]
> This is not a SuSE question, but a general Linux question.
>
> I have two bookmark files.
> Let's call them file A and file B.
> I want to compare the two files and import all bookmarks from file B, which
> are not in file A, into file A.
>
> How do I do that from a command line ?[/color]
diff A B >patch.txt
patch A <patch.txt
Theo
--
theo at van-werkhoven.nl ICQ:277217131 SuSE Linux
linuxcounter.org: 99872 Jabber:muadib at jabber.xs4all.nl AMD XP3000+ 1024MB
"ik _heb_ niets tegen Microsoft, ik heb iets tegen
de uitwassen *van* Microsoft"
-
Re: File comparasion.
Theo v. Werkhoven wrote:
[color=blue]
> The carbonbased lifeform Henk Oegema inspired alt.os.linux.suse with:[color=green]
>> This is not a SuSE question, but a general Linux question.
>>
>> I have two bookmark files.
>> Let's call them file A and file B.
>> I want to compare the two files and import all bookmarks from file B,
>> which are not in file A, into file A.
>>
>> How do I do that from a command line ?[/color]
>
> diff A B >patch.txt
> patch A <patch.txt[/color]
That simple ? :-)
Bedankt Theo
-
Re: File comparasion.
On 2007-09-10 07:49, Henk Oegema wrote:[color=blue]
> Theo v. Werkhoven wrote:
>[color=green]
>> The carbonbased lifeform Henk Oegema inspired alt.os.linux.suse with:[color=darkred]
>>> This is not a SuSE question, but a general Linux question.
>>>
>>> I have two bookmark files.
>>> Let's call them file A and file B.
>>> I want to compare the two files and import all bookmarks from file B,
>>> which are not in file A, into file A.
>>>
>>> How do I do that from a command line ?[/color]
>> diff A B >patch.txt
>> patch A <patch.txt[/color]
> That simple ? :-)
> Bedankt Theo
>[/color]
This will make A identical to B
with textfiles you can do cat A B | sort -u > C
but if your bookmarks is html, that don't work either
What I do is just import B from the browser.
/bb
-
Re: File comparasion.
Henk Oegema wrote:[color=blue]
> This is not a SuSE question, but a general Linux question.
>
> I have two bookmark files.
> Let's call them file A and file B.
> I want to compare the two files and import all bookmarks from file B, which
> are not in file A, into file A.
>
> How do I do that from a command line ?[/color]
If you use Firefox the simplest way is to use:
[url]http://www.google.com/tools/firefox/browsersync/[/url]
That will keep all your bookmarks (and more if you like) synced wherever
you log in. I started using it a few months ago and I just couldn't cope
without it anymore :)
Vahis
--
"Only wimps use tape backup: _real_ men just upload their important
stuff on ftp, and let the rest of the world mirror it ;)"
Linus Torvalds 1996.