{"id":593,"date":"2013-04-08T20:47:13","date_gmt":"2013-04-08T19:47:13","guid":{"rendered":"http:\/\/www.jbahillo.com\/?page_id=593"},"modified":"2013-04-08T20:48:28","modified_gmt":"2013-04-08T19:48:28","slug":"bash-removing-incorrect-characters","status":"publish","type":"page","link":"https:\/\/www.jbahillo.com\/?page_id=593","title":{"rendered":"[bash] Removing incorrect characters"},"content":{"rendered":"<p>This is a script I had done to remove an incorrect character I had in some files:<\/p>\n<pre class=\"brush: bash; auto-links: true; collapse: false; gutter: true; first-line: 1; highlight: []; html-script: false; light: false; pad-line-numbers: true; toolbar: true; wrap-lines: true\">\n#!\/bin\/bash\nfor e in $(grep -R &quot;|&quot; \/var\/lib\/files\/* | cut -d: -f1)\ndo\ntr -d &#039;|&#039; &lt; $e &gt; $e\ndone\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is a script I had done to remove an incorrect character I had in some files: #!\/bin\/bash for e in $(grep -R &quot;|&quot; \/var\/lib\/files\/* | cut -d: -f1) do tr -d &#039;|&#039; &lt; $e &gt; $e done<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.jbahillo.com\/?page_id=593\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":21,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"ep_exclude_from_search":false,"footnotes":""},"class_list":["post-593","page","type-page","status-publish","hentry"],"aioseo_notices":[],"jetpack_shortlink":"https:\/\/wp.me\/P74T96-9z","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jbahillo.com\/index.php?rest_route=\/wp\/v2\/pages\/593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jbahillo.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.jbahillo.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.jbahillo.com\/index.php?rest_route=\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jbahillo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=593"}],"version-history":[{"count":3,"href":"https:\/\/www.jbahillo.com\/index.php?rest_route=\/wp\/v2\/pages\/593\/revisions"}],"predecessor-version":[{"id":595,"href":"https:\/\/www.jbahillo.com\/index.php?rest_route=\/wp\/v2\/pages\/593\/revisions\/595"}],"wp:attachment":[{"href":"https:\/\/www.jbahillo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}