{"id":500,"date":"2012-08-22T09:58:00","date_gmt":"2012-08-22T09:58:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2012\/08\/22\/x11-log-files-with-timestamps-ignore-the-timestamps-and-compare-there-anyway\/"},"modified":"2012-08-22T09:58:00","modified_gmt":"2012-08-22T09:58:00","slug":"x11-log-files-with-timestamps-ignore-the-timestamps-and-compare-there-anyway","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2012\/08\/22\/x11-log-files-with-timestamps-ignore-the-timestamps-and-compare-there-anyway\/","title":{"rendered":"X11 log files with timestamps: ignore the timestamps and compare there anyway"},"content":{"rendered":"<p>\t\t\t\t<span>\/var\/log\/Xorg.0.log<\/span>\u00a0and\u00a0<span>\/var\/log\/Xorg.0.log.old\u00a0<\/span>have timestamps on (most of) their lines, so you are not able to compare them directly.<\/p>\n<p>This is the perl one-liner, that I just used for replacing the timestamp by white space:<\/p>\n<blockquote><p>\n<span><span>perl -pe &#8216;s\/^[&#8230;&#8230;&#8230;.]\/[ \u00a0 \u00a0 \u00a0 \u00a0 \u00a0]\/&#8217; \/var\/log\/Xorg.0.log &gt; \u00a0\/var\/log\/Xorg.0.log.NODATE<\/span><\/span><\/p><\/blockquote>\n<p>If you apply this to <span>Xorg.0.log<\/span> and also to <span>Xorg.0.log.old<\/span>, you are able to compare the respective results.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/var\/log\/Xorg.0.log\u00a0and\u00a0\/var\/log\/Xorg.0.log.old\u00a0have timestamps on (most of) their lines, so you are not able to compare them directly. This is the perl one-liner, that I just used for replacing the timestamp by white space: perl -pe &#8216;s\/^[&#8230;&#8230;&#8230;.]\/[ \u00a0 \u00a0 \u00a0 \u00a0 \u00a0]\/&#8217; \/var\/log\/Xorg.0.log &gt; \u00a0\/var\/log\/Xorg.0.log.NODATE If you apply this to Xorg.0.log and also to Xorg.0.log.old, you are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-84","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/500\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}