{"id":803,"date":"2012-10-23T16:54:28","date_gmt":"2012-10-23T15:54:28","guid":{"rendered":"http:\/\/www.ozone3d.net\/blogs\/lab\/?p=803"},"modified":"2012-10-23T16:54:28","modified_gmt":"2012-10-23T15:54:28","slug":"linux-macosx-comparaison-de-deux-fichiers","status":"publish","type":"post","link":"https:\/\/www.ozone3d.net\/blogs\/lab\/20121023\/linux-macosx-comparaison-de-deux-fichiers\/","title":{"rendered":"Linux, MacOSX: Comparaison de deux fichiers"},"content":{"rendered":"<p><center><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ozone3d.net\/public\/jegx\/201210\/macosx-terminal-compare-two-files.png\" alt=\"Linux, MacOSX: how to compare two files\" \/><\/p>\n<p><\/center><br \/>\n<!--more--><\/p>\n<p>Voil\u00e0 comment comparer deux fichiers textes en ligne de commande. Imaginons que je veuille comparer les deux fichiers textes suivants (r30553.txt et r31033.txt) qui contiennent tous les deux les extensions OpenGL pour les drivers R305.53 et R310.33. Ouvrez un terminal dans le r\u00e9pertoire qui vous interesse et taper:<\/p>\n<pre>\r\n$ fgrep -v -f r30553.txt r31033.txt \r\n<\/pre>\n<p>Cette commande nous donne la sortie suivante:<\/p>\n<pre>\r\nGL_EXT_framebuffer_multisample_blit_scaled\r\nGL_NV_draw_texture\r\n<\/pre>\n<p>Cette commande fonctionne sous Linux et MacOSX.<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[414,532],"tags":[535,538,536,415,533,534,520,537],"class_list":["post-803","post","type-post","status-publish","format-standard","hentry","category-linux","category-macosx","tag-compare","tag-fgrep","tag-files","tag-linux-2","tag-macosx-2","tag-osx","tag-terminal","tag-termnial"],"aioseo_notices":[],"views":270,"_links":{"self":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/posts\/803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/comments?post=803"}],"version-history":[{"count":0,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/posts\/803\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/media?parent=803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/categories?post=803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/tags?post=803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}