{"id":559,"date":"2020-07-02T05:02:21","date_gmt":"2020-07-01T21:02:21","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/?p=559"},"modified":"2020-07-02T05:02:24","modified_gmt":"2020-07-01T21:02:24","slug":"sed-real-life-examples","status":"publish","type":"post","link":"http:\/\/www.sysadmindayph.com\/blog\/sed-real-life-examples\/","title":{"rendered":"SED Real Life Examples"},"content":{"rendered":"\n<p>sed &#8216;s\/pdf.<em>\/pdf\/&#8217; proposalPackage &#8212; removed character from pdf to end of line <\/em><\/p>\n\n\n\n<p><em>sed &#8216;s\/(.<\/em>)\/&#8221;\\1&#8243;\/g&#8217; proposalPackage &#8212; put line in &#8221; &#8220;<br><\/p>\n\n\n\n<p>while read line; do for i in {1..2}; do echo &#8220;$line&#8221;; done; done &lt; stagingattachement.txt > newfile &#8212;- copy line to itself<br><\/p>\n\n\n\n<p>sed &#8216;s\/^\/copy -keep \/&#8217; proposalPackage.new.txt &#8212; insert copy in start of line for all line<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sed &#8216;s\/pdf.\/pdf\/&#8217; proposalPackage &#8212; removed character from pdf to end of line sed &#8216;s\/(.)\/&#8221;\\1&#8243;\/g&#8217; proposalPackage &#8212; put line in &#8221; &#8220; while read line; do for i in {1..2}; do echo &#8220;$line&#8221;; done; done &lt; &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-559","post","type-post","status-publish","format-standard","hentry","category-commands"],"_links":{"self":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=559"}],"version-history":[{"count":1,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/559\/revisions"}],"predecessor-version":[{"id":560,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/559\/revisions\/560"}],"wp:attachment":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=559"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}