{"id":6832,"date":"2014-04-23T08:10:47","date_gmt":"2014-04-23T08:10:47","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/iterate-over-a-list-of-ipv6-addresse-in-a-bash-script-for-loop-collection-of-common-programming-errors\/"},"modified":"2014-04-23T08:10:47","modified_gmt":"2014-04-23T08:10:47","slug":"iterate-over-a-list-of-ipv6-addresse-in-a-bash-script-for-loop-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/iterate-over-a-list-of-ipv6-addresse-in-a-bash-script-for-loop-collection-of-common-programming-errors\/","title":{"rendered":"Iterate over a list of IPv6 Addresse in a Bash Script for loop-Collection of common programming errors"},"content":{"rendered":"<p>Try using<\/p>\n<pre><code>file_\"${X\/\/:\/_}\".xml\n<\/code><\/pre>\n<p>in order to replace all <code>:<\/code> with <code>_<\/code>.<\/p>\n<p>If your files are already named this way and this shouldn&#8217;t change,<\/p>\n<pre><code>file_\"${X\/\/:\/\\\\:}\".xml\n<\/code><\/pre>\n<p>can be used as well. But I&#8217;m not sure if <code>scp<\/code> does recognize this appropriately.<\/p>\n<p>Besides that, the <code>scp<\/code> manpage contains<\/p>\n<blockquote>\n<p>File names may contain a user and host specification to indicate that the file is to be copied to\/from that host. Local file names can be made explicit using absolute or relative pathnames to avoid scp treating file names containing &#8216;:&#8217; as host specifiers. Copies between two remote hosts are also permitted.<\/p>\n<\/blockquote>\n<p>So just using <code>.\/file_\"${X}\".xml<\/code> should work as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Try using file_&#8221;${X\/\/:\/_}&#8221;.xml in order to replace all : with _. If your files are already named this way and this shouldn&#8217;t change, file_&#8221;${X\/\/:\/\\\\:}&#8221;.xml can be used as well. But I&#8217;m not sure if scp does recognize this appropriately. Besides that, the scp manpage contains File names may contain a user and host specification to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6832","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6832"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6832\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}