{"id":3181,"date":"2017-02-05T00:26:53","date_gmt":"2017-02-04T15:26:53","guid":{"rendered":"http:\/\/www.catracing.org\/hendrb\/?p=3181"},"modified":"2017-02-05T00:26:53","modified_gmt":"2017-02-04T15:26:53","slug":"os-x-installing-gnu-sed","status":"publish","type":"post","link":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/","title":{"rendered":"OS X &#8211; Installing GNU-sed"},"content":{"rendered":"<h1 style=\"text-align: center;\"><span style=\"color: #0000ff;\">OS X Technical<\/span><\/h1>\n<h2 style=\"text-align: center;\"><span style=\"color: #0000ff;\">Installing GNU-sed using Home Brew repository<\/span><\/h2>\n<hr>\n<p>&nbsp; &nbsp;Last month\u2019s technical article focused on adding BASH 4 to OS X using Home Brew, because OS X ships with BASH v3.257 due to GPLv3.0 licensing requirements.&nbsp;&nbsp; You can read the article here.&nbsp; <span style=\"color: #00ffff;\"><a style=\"color: #00ffff;\" href=\"http:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/\">http:\/\/www.catracing.org\/hendrb\/tech-tutorial-adding-bash-4-osx-using-home-brewos-x\/<\/a><\/span>. &nbsp;This&nbsp;month I will share some more tips &nbsp;that will make your shell experience more compatible with Linux scripts by adding <em>GNUsed,<\/em>&nbsp;&nbsp;First some background then we will fire up the terminal.app and get started!<\/p>\n<p>&nbsp; Back in 2015, I published article containing a type in yourself BASH script that will display random quotes from a file called \u2018quotations\u2019 that I converted from a CNET Amiga BBS plus file (Door, or external for the PC BBS SysOps). &nbsp;<a href=\"http:\/\/www.catracing.org\/hendrb\/fun-with-bash-scripts-random-quote-generator\/\"><span style=\"color: #00ffff;\">(Click here for article.)<\/span><\/a> While it ran great on Linux boxes, due to differences in the BSD-sed (stream editor) utility, which is &nbsp;used to parse the blocks in the text file containing the individual quotes then centering them depending on the width of your terminal window. &nbsp;Would work on a Linux box, but fail with an error on OS X.<\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3182\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg\" alt=\"\" width=\"736\" height=\"145\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg 736w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote-300x59.jpg 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em><span style=\"color: #ffffff;\">(As you can see the script runs fine in CentOS Linux)<\/span><\/em><\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/SED-failing-on-OSX.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3183\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/SED-failing-on-OSX-1024x221.jpg\" alt=\"\" width=\"1024\" height=\"221\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/SED-failing-on-OSX-1024x221.jpg 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/SED-failing-on-OSX-300x65.jpg 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/SED-failing-on-OSX-768x166.jpg 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/SED-failing-on-OSX.jpg 1129w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">(The script failing in OS X with the &#8216;expected context address&#8217;)<\/p>\n<p style=\"text-align: left;\">&nbsp; After upgrading to BASH 4 using the Home Brew repository I discovered you could also install the GNU version of the sed utility which would allow me to run my script error free without writing 2 versions of my script.&nbsp; Which brings us to the purpose of this blog, installing GNU-sed from the Home Brew repository.<\/p>\n<p>&nbsp; There are 2 way we can install this from the repository, one method will install the files renaming GNUsed to gsed. Which will allow you to either call \u2018sed\u2019 (BSDsed), or \u2018gsed\u2019 (GNUsed) as needed from your scripts.<\/p>\n<p>&nbsp;<\/p>\n<p>Method 1 :<\/p>\n<p>Enter the OS X Terminal (SHIFT &#8211; COMMAND \u2013 U) Then launch the terminal.app.<\/p>\n<p>You must be in an account with elevated privledges (NOTE: You can NOT sudo)<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If logged in a normal user account (Which you should be!),&nbsp;Type the following at the terminal prompt.<\/p>\n<p style=\"padding-left: 90px;\"><span style=\"color: #ffff00;\">$ su \u2013 &lt;username&gt;<\/span><\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The \u2013 option tell the terminal to switch users and load the environment of that user.<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;At the Shell Prompt type<\/p>\n<p style=\"padding-left: 90px;\"><span style=\"color: #ffff00;\">$ brew install gnu-sed \u2013with-default-names<\/span><\/p>\n<p>The Brew repository installer will install sed into \/usr\/local\/Cellar\/gnu-sed\/4.2.2\/, and create a symbolic link for &nbsp;\/usr\/bin\/local\/sed to that directory<\/p>\n<p>Now when you use sed, it will use GNU-sed instead of BSD sed.<\/p>\n<p>You can revert back to BSDsed by removing the symbolic link in \/usr\/local\/bin.<\/p>\n<p style=\"padding-left: 90px;\"><span style=\"color: #ffff00;\">$ rm sed<\/span><\/p>\n<p>You also need to remove the symlink to the man pages \/usr\/local\/share\/man\/man1<\/p>\n<p style=\"padding-left: 90px;\"><span style=\"color: #ffff00;\">$ rm \/usr\/local\/share\/man\/man1\/sed.1<\/span><\/p>\n<p><span style=\"color: #ff0000;\">NOTE:<\/span> This does not remove the files only the symbolic links!<br \/>\nTo permanently remove GNU-sed from your computer, simply type the following with your elevated account.<\/p>\n<p style=\"padding-left: 90px;\"><span style=\"color: #ffff00;\">$brew remove gnu-sed<\/span><\/p>\n<p>Method 2: Installing GNU-sed so it can be installed concurrently with BSDsed (dogs and cats living together.)<\/p>\n<p>Let\u2019s say that we wanted to install GNU-sed but for whatever reason (Such as compatibility), you wanted to install GNU-sed and have it reside on the system concurrently with BSDsed!&nbsp; Or give your users the option to choose which version of SED they want to use by default.&nbsp; This is quite simple to accomplish.&nbsp;<\/p>\n<p>Enter the OS X Terminal (SHIFT &#8211; COMMAND \u2013 U) Then launch the terminal.app.<\/p>\n<p>You must be in an account with elevated privileges (NOTE: You can NOT sudo)<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If logged in a normal user account (Which you should be!)<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type at the terminal prompt.<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #ffff00;\"> $ su \u2013 &lt;username&gt;<\/span><\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The \u2013 option tell the terminal to switch users and load the environment of that user.<\/p>\n<p>At your elevated prompt type.<\/p>\n<p style=\"padding-left: 30px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: #ffff00;\">$ brew install gnu-sed<\/span><\/p>\n<p>The brew repository will install gnu-sed in the same dictory as method 1, but it will not create symbolic links for sed, or the sed man pages.&nbsp; You now have BSD-sed \u2018sed\u2019, and GNU-sed \u2018gsed\u2019 on your system!&nbsp; Type it our, type $ man sed, and $ man gsed at a terminal prompt!&nbsp; Scroll down to the last line of the page and note the difference!<\/p>\n<p>If you are writing scripts that require the use of GNU-sed for your own environment just remember to use gsed,&nbsp; if you need to run scripts written for Linux machines, you may want to consider writing a launching scrip that aliases sed to gsed and then removes the alias upon exit.&nbsp; This can be done like this.<\/p>\n<p><span style=\"color: #ffff00;\">#!\/bin\/bash<\/span><br \/>\n<span style=\"color: #ffff00;\"># OS X Launcher for randquote.sh<\/span><br \/>\n<span style=\"color: #ffff00;\"># You MUST have gnu-sed installed from homebrew to use<\/span><br \/>\n<span style=\"color: #ffff00;\"># aliases sed to gnu-sed for linux bash script compatibility<\/span><br \/>\n<span style=\"color: #ffff00;\">alias sed=&#8217;gsed &#8216;<\/span><br \/>\n<span style=\"color: #ffff00;\">source .\/randquote.sh<\/span><br \/>\n<span style=\"color: #ffff00;\">unalias sed<\/span><\/p>\n<p><a href=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/sed-with-launcher.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3184\" src=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/sed-with-launcher-1024x151.png\" alt=\"\" width=\"1024\" height=\"151\" srcset=\"https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/sed-with-launcher-1024x151.png 1024w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/sed-with-launcher-300x44.png 300w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/sed-with-launcher-768x113.png 768w, https:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/sed-with-launcher.png 1129w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">(Executiing randquote.sh with the launching script above, note that I needed to execute the script using the source command, instead of launching it using .\/filename.sh)<\/p>\n<p style=\"text-align: center;\">In order for aliases to work inside a shell script, you must execute the script using the source command, not with the simple .\\ from the command prompt.&nbsp; Your other option is to use a text editor and replace all incidents of sed with gsed manually.&nbsp;<\/p>\n<p>Unless there is a specific reason option one will not work for you, I highly recommend installing GNU-sed with the \u2013with-default-names option.&nbsp; It will save extra steps and headaches down the road, and can always be easily removed if you suspect compatibility issues.<\/p>\n<h4><span style=\"color: #ffffff;\">I hope you enjoyed todays OS X Terminal tutorial, please let me know if you found this interesting! Until next month, don\u2019t stop exploring and be safe on the digital playground.<\/span><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>OS X Technical Installing GNU-sed using Home Brew repository &nbsp; &nbsp;Last month\u2019s technical article focused on adding BASH 4 to OS X using Home Brew, because OS X ships with BASH v3.257 due to GPLv3.0 licensing requirements.&nbsp;&nbsp; You can read <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-3181","post","type-post","status-publish","format-standard","hentry","category-technical"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>OS X - Installing GNU-sed - Brent&#039;s World<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OS X - Installing GNU-sed - Brent&#039;s World\" \/>\n<meta property=\"og:description\" content=\"OS X Technical Installing GNU-sed using Home Brew repository &nbsp; &nbsp;Last month\u2019s technical article focused on adding BASH 4 to OS X using Home Brew, because OS X ships with BASH v3.257 due to GPLv3.0 licensing requirements.&nbsp;&nbsp; You can read &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/\" \/>\n<meta property=\"og:site_name\" content=\"Brent&#039;s World\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Brents-World-912767498915017\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/Brents-World-912767498915017\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-04T15:26:53+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg\" \/>\n<meta name=\"author\" content=\"Brent Hendricks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brent Hendricks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/\"},\"author\":{\"name\":\"Brent Hendricks\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\"},\"headline\":\"OS X &#8211; Installing GNU-sed\",\"datePublished\":\"2017-02-04T15:26:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/\"},\"wordCount\":1056,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\"},\"image\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg\",\"articleSection\":[\"Technical\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/\",\"url\":\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/\",\"name\":\"OS X - Installing GNU-sed - Brent&#039;s World\",\"isPartOf\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg\",\"datePublished\":\"2017-02-04T15:26:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#primaryimage\",\"url\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg\",\"contentUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.catracing.org\/hendrb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OS X &#8211; Installing GNU-sed\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#website\",\"url\":\"https:\/\/www.catracing.org\/hendrb\/\",\"name\":\"Brent&#039;s World\",\"description\":\"Your weekly dose of the life of Brent!\",\"publisher\":{\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.catracing.org\/hendrb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442\",\"name\":\"Brent Hendricks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\",\"url\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\",\"contentUrl\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\",\"width\":4480,\"height\":6720,\"caption\":\"Brent Hendricks\"},\"logo\":{\"@id\":\"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg\"},\"sameAs\":[\"http:\/\/www.catracing.org\",\"https:\/\/www.facebook.com\/Brents-World-912767498915017\"],\"url\":\"https:\/\/www.catracing.org\/hendrb\/author\/hendrb01\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OS X - Installing GNU-sed - Brent&#039;s World","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/","og_locale":"en_US","og_type":"article","og_title":"OS X - Installing GNU-sed - Brent&#039;s World","og_description":"OS X Technical Installing GNU-sed using Home Brew repository &nbsp; &nbsp;Last month\u2019s technical article focused on adding BASH 4 to OS X using Home Brew, because OS X ships with BASH v3.257 due to GPLv3.0 licensing requirements.&nbsp;&nbsp; You can read &hellip; Continue reading &rarr;","og_url":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/","og_site_name":"Brent&#039;s World","article_publisher":"https:\/\/www.facebook.com\/Brents-World-912767498915017","article_author":"https:\/\/www.facebook.com\/Brents-World-912767498915017","article_published_time":"2017-02-04T15:26:53+00:00","og_image":[{"url":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg","type":"","width":"","height":""}],"author":"Brent Hendricks","twitter_misc":{"Written by":"Brent Hendricks","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#article","isPartOf":{"@id":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/"},"author":{"name":"Brent Hendricks","@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442"},"headline":"OS X &#8211; Installing GNU-sed","datePublished":"2017-02-04T15:26:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/"},"wordCount":1056,"commentCount":0,"publisher":{"@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442"},"image":{"@id":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#primaryimage"},"thumbnailUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg","articleSection":["Technical"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/","url":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/","name":"OS X - Installing GNU-sed - Brent&#039;s World","isPartOf":{"@id":"https:\/\/www.catracing.org\/hendrb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#primaryimage"},"image":{"@id":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#primaryimage"},"thumbnailUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg","datePublished":"2017-02-04T15:26:53+00:00","breadcrumb":{"@id":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#primaryimage","url":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg","contentUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2017\/02\/Linux-randquote.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.catracing.org\/hendrb\/os-x-installing-gnu-sed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.catracing.org\/hendrb\/"},{"@type":"ListItem","position":2,"name":"OS X &#8211; Installing GNU-sed"}]},{"@type":"WebSite","@id":"https:\/\/www.catracing.org\/hendrb\/#website","url":"https:\/\/www.catracing.org\/hendrb\/","name":"Brent&#039;s World","description":"Your weekly dose of the life of Brent!","publisher":{"@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.catracing.org\/hendrb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.catracing.org\/hendrb\/#\/schema\/person\/abd5b294207e782562c7bb51e0a9e442","name":"Brent Hendricks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg","url":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg","contentUrl":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg","width":4480,"height":6720,"caption":"Brent Hendricks"},"logo":{"@id":"http:\/\/www.catracing.org\/hendrb\/wp-content\/uploads\/2019\/05\/Brent-Sitting-portrait-2.jpg"},"sameAs":["http:\/\/www.catracing.org","https:\/\/www.facebook.com\/Brents-World-912767498915017"],"url":"https:\/\/www.catracing.org\/hendrb\/author\/hendrb01\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p43ojH-Pj","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/posts\/3181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/comments?post=3181"}],"version-history":[{"count":0,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/posts\/3181\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/media?parent=3181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/categories?post=3181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.catracing.org\/hendrb\/wp-json\/wp\/v2\/tags?post=3181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}