ActivityPub Viewer

A small tool to view real-world ActivityPub objects as JSON! Enter a URL or username from Mastodon or a similar service below, and we'll send a request with the right Accept header to the server to view the underlying object.

Open in browser →
{ "@context": [ "https://www.w3.org/ns/activitystreams", { "ostatus": "http://ostatus.org#", "atomUri": "ostatus:atomUri", "inReplyToAtomUri": "ostatus:inReplyToAtomUri", "conversation": "ostatus:conversation", "sensitive": "as:sensitive", "toot": "http://joinmastodon.org/ns#", "votersCount": "toot:votersCount", "Hashtag": "as:Hashtag" } ], "id": "https://abpe.org/users/gslin/statuses/113386200653449373", "type": "Note", "summary": null, "inReplyTo": null, "published": "2024-10-28T17:21:58Z", "url": "https://abpe.org/@gslin/113386200653449373", "attributedTo": "https://abpe.org/users/gslin", "to": [ "https://www.w3.org/ns/activitystreams#Public" ], "cc": [ "https://abpe.org/users/gslin/followers" ], "sensitive": false, "atomUri": "https://abpe.org/users/gslin/statuses/113386200653449373", "inReplyToAtomUri": null, "conversation": "tag:abpe.org,2024-10-28:objectId=163679:objectType=Conversation", "content": "<p>wc -l 在 Linux 與 macOS 上輸出的格式不同</p><p>在 Linux 上跑起來沒問題的 shell script 到 macOS 上發現有狀況,追了問題後發現是 wc -l 輸出的格式不同導致的。</p><p>Linux 上面是直接輸出數字:</p><p>$ echo abc | wc -l<br />1</p><p><a href=\"https://blog.gslin.org/archives/2024/10/29/12051/wc-l-%e5%9c%a8-linux-%e8%88%87-macos-%e4%b8%8a%e8%bc%b8%e5%87%ba%e7%9a%84%e6%a0%bc%e5%bc%8f%e4%b8%8d%e5%90%8c/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">blog.gslin.org/archives/2024/1</span><span class=\"invisible\">0/29/12051/wc-l-%e5%9c%a8-linux-%e8%88%87-macos-%e4%b8%8a%e8%bc%b8%e5%87%ba%e7%9a%84%e6%a0%bc%e5%bc%8f%e4%b8%8d%e5%90%8c/</span></a></p><p><a href=\"https://abpe.org/tags/Computer\" class=\"mention hashtag\" rel=\"tag\">#<span>Computer</span></a> <a href=\"https://abpe.org/tags/Linux\" class=\"mention hashtag\" rel=\"tag\">#<span>Linux</span></a> <a href=\"https://abpe.org/tags/MacOS\" class=\"mention hashtag\" rel=\"tag\">#<span>MacOS</span></a> <a href=\"https://abpe.org/tags/Murmuring\" class=\"mention hashtag\" rel=\"tag\">#<span>Murmuring</span></a> <a href=\"https://abpe.org/tags/OS\" class=\"mention hashtag\" rel=\"tag\">#<span>OS</span></a> <a href=\"https://abpe.org/tags/Software\" class=\"mention hashtag\" rel=\"tag\">#<span>Software</span></a> <a href=\"https://abpe.org/tags/cli\" class=\"mention hashtag\" rel=\"tag\">#<span>cli</span></a> <a href=\"https://abpe.org/tags/command\" class=\"mention hashtag\" rel=\"tag\">#<span>command</span></a> <a href=\"https://abpe.org/tags/interface\" class=\"mention hashtag\" rel=\"tag\">#<span>interface</span></a> <a href=\"https://abpe.org/tags/line\" class=\"mention hashtag\" rel=\"tag\">#<span>line</span></a> <a href=\"https://abpe.org/tags/linux\" class=\"mention hashtag\" rel=\"tag\">#<span>linux</span></a> <a href=\"https://abpe.org/tags/mac\" class=\"mention hashtag\" rel=\"tag\">#<span>mac</span></a> <a href=\"https://abpe.org/tags/macos\" class=\"mention hashtag\" rel=\"tag\">#<span>macos</span></a> <a href=\"https://abpe.org/tags/osx\" class=\"mention hashtag\" rel=\"tag\">#<span>osx</span></a> <a href=\"https://abpe.org/tags/output\" class=\"mention hashtag\" rel=\"tag\">#<span>output</span></a> <a href=\"https://abpe.org/tags/posix\" class=\"mention hashtag\" rel=\"tag\">#<span>posix</span></a> <a href=\"https://abpe.org/tags/script\" class=\"mention hashtag\" rel=\"tag\">#<span>script</span></a> <a href=\"https://abpe.org/tags/shell\" class=\"mention hashtag\" rel=\"tag\">#<span>shell</span></a> <a href=\"https://abpe.org/tags/space\" class=\"mention hashtag\" rel=\"tag\">#<span>space</span></a> <a href=\"https://abpe.org/tags/trailing\" class=\"mention hashtag\" rel=\"tag\">#<span>trailing</span></a> <a href=\"https://abpe.org/tags/wc\" class=\"mention hashtag\" rel=\"tag\">#<span>wc</span></a></p>", "contentMap": { "zh": "<p>wc -l 在 Linux 與 macOS 上輸出的格式不同</p><p>在 Linux 上跑起來沒問題的 shell script 到 macOS 上發現有狀況,追了問題後發現是 wc -l 輸出的格式不同導致的。</p><p>Linux 上面是直接輸出數字:</p><p>$ echo abc | wc -l<br />1</p><p><a href=\"https://blog.gslin.org/archives/2024/10/29/12051/wc-l-%e5%9c%a8-linux-%e8%88%87-macos-%e4%b8%8a%e8%bc%b8%e5%87%ba%e7%9a%84%e6%a0%bc%e5%bc%8f%e4%b8%8d%e5%90%8c/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">blog.gslin.org/archives/2024/1</span><span class=\"invisible\">0/29/12051/wc-l-%e5%9c%a8-linux-%e8%88%87-macos-%e4%b8%8a%e8%bc%b8%e5%87%ba%e7%9a%84%e6%a0%bc%e5%bc%8f%e4%b8%8d%e5%90%8c/</span></a></p><p><a href=\"https://abpe.org/tags/Computer\" class=\"mention hashtag\" rel=\"tag\">#<span>Computer</span></a> <a href=\"https://abpe.org/tags/Linux\" class=\"mention hashtag\" rel=\"tag\">#<span>Linux</span></a> <a href=\"https://abpe.org/tags/MacOS\" class=\"mention hashtag\" rel=\"tag\">#<span>MacOS</span></a> <a href=\"https://abpe.org/tags/Murmuring\" class=\"mention hashtag\" rel=\"tag\">#<span>Murmuring</span></a> <a href=\"https://abpe.org/tags/OS\" class=\"mention hashtag\" rel=\"tag\">#<span>OS</span></a> <a href=\"https://abpe.org/tags/Software\" class=\"mention hashtag\" rel=\"tag\">#<span>Software</span></a> <a href=\"https://abpe.org/tags/cli\" class=\"mention hashtag\" rel=\"tag\">#<span>cli</span></a> <a href=\"https://abpe.org/tags/command\" class=\"mention hashtag\" rel=\"tag\">#<span>command</span></a> <a href=\"https://abpe.org/tags/interface\" class=\"mention hashtag\" rel=\"tag\">#<span>interface</span></a> <a href=\"https://abpe.org/tags/line\" class=\"mention hashtag\" rel=\"tag\">#<span>line</span></a> <a href=\"https://abpe.org/tags/linux\" class=\"mention hashtag\" rel=\"tag\">#<span>linux</span></a> <a href=\"https://abpe.org/tags/mac\" class=\"mention hashtag\" rel=\"tag\">#<span>mac</span></a> <a href=\"https://abpe.org/tags/macos\" class=\"mention hashtag\" rel=\"tag\">#<span>macos</span></a> <a href=\"https://abpe.org/tags/osx\" class=\"mention hashtag\" rel=\"tag\">#<span>osx</span></a> <a href=\"https://abpe.org/tags/output\" class=\"mention hashtag\" rel=\"tag\">#<span>output</span></a> <a href=\"https://abpe.org/tags/posix\" class=\"mention hashtag\" rel=\"tag\">#<span>posix</span></a> <a href=\"https://abpe.org/tags/script\" class=\"mention hashtag\" rel=\"tag\">#<span>script</span></a> <a href=\"https://abpe.org/tags/shell\" class=\"mention hashtag\" rel=\"tag\">#<span>shell</span></a> <a href=\"https://abpe.org/tags/space\" class=\"mention hashtag\" rel=\"tag\">#<span>space</span></a> <a href=\"https://abpe.org/tags/trailing\" class=\"mention hashtag\" rel=\"tag\">#<span>trailing</span></a> <a href=\"https://abpe.org/tags/wc\" class=\"mention hashtag\" rel=\"tag\">#<span>wc</span></a></p>" }, "attachment": [], "tag": [ { "type": "Hashtag", "href": "https://abpe.org/tags/computer", "name": "#computer" }, { "type": "Hashtag", "href": "https://abpe.org/tags/linux", "name": "#linux" }, { "type": "Hashtag", "href": "https://abpe.org/tags/macos", "name": "#macos" }, { "type": "Hashtag", "href": "https://abpe.org/tags/murmuring", "name": "#murmuring" }, { "type": "Hashtag", "href": "https://abpe.org/tags/os", "name": "#os" }, { "type": "Hashtag", "href": "https://abpe.org/tags/software", "name": "#software" }, { "type": "Hashtag", "href": "https://abpe.org/tags/cli", "name": "#cli" }, { "type": "Hashtag", "href": "https://abpe.org/tags/command", "name": "#command" }, { "type": "Hashtag", "href": "https://abpe.org/tags/interface", "name": "#interface" }, { "type": "Hashtag", "href": "https://abpe.org/tags/line", "name": "#line" }, { "type": "Hashtag", "href": "https://abpe.org/tags/mac", "name": "#mac" }, { "type": "Hashtag", "href": "https://abpe.org/tags/osx", "name": "#osx" }, { "type": "Hashtag", "href": "https://abpe.org/tags/output", "name": "#output" }, { "type": "Hashtag", "href": "https://abpe.org/tags/posix", "name": "#posix" }, { "type": "Hashtag", "href": "https://abpe.org/tags/script", "name": "#script" }, { "type": "Hashtag", "href": "https://abpe.org/tags/shell", "name": "#shell" }, { "type": "Hashtag", "href": "https://abpe.org/tags/space", "name": "#space" }, { "type": "Hashtag", "href": "https://abpe.org/tags/trailing", "name": "#trailing" }, { "type": "Hashtag", "href": "https://abpe.org/tags/wc", "name": "#wc" } ], "replies": { "id": "https://abpe.org/users/gslin/statuses/113386200653449373/replies", "type": "Collection", "first": { "type": "CollectionPage", "next": "https://abpe.org/users/gslin/statuses/113386200653449373/replies?only_other_accounts=true&page=true", "partOf": "https://abpe.org/users/gslin/statuses/113386200653449373/replies", "items": [] } }, "likes": { "id": "https://abpe.org/users/gslin/statuses/113386200653449373/likes", "type": "Collection", "totalItems": 1 }, "shares": { "id": "https://abpe.org/users/gslin/statuses/113386200653449373/shares", "type": "Collection", "totalItems": 0 } }