
{"id":8458,"date":"2013-06-02T15:29:37","date_gmt":"2013-06-02T15:29:37","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=8458"},"modified":"2013-06-02T15:29:37","modified_gmt":"2013-06-02T15:29:37","slug":"mv-command-gnu-bash","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2013\/06\/02\/mv-command-gnu-bash\/","title":{"rendered":"mv  command GNU bash"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n$&gt; 1\n$echo hello &gt; 1\n$cat 1\nhello\n$ls\n1\n$mv 1 2\n$ls\n2\n$cat 2\nhello\n$\n\n<\/pre>\n<p><a href=\"http:\/\/pluto.infoclub.in\/wp-content\/uploads\/2013\/06\/mv.c\" target=\"_blank\" rel=\"noopener\">http:\/\/pluto.infoclub.in\/wp-content\/uploads\/2013\/06\/mv.c<\/a><br \/>\n<\/p>\n<h4><u>code section<\/u><\/h4>\n<pre>\n  while ((c = getopt_long (argc, argv, \"bfint:uvS:T\", long_options, NULL))\n         != -1)\n    {\n      switch (c)\n        {\n        case 'b':\n          make_backups = true;\n          if (optarg)\n            version_control_string = optarg;\n          break;\n        case 'f':\n          x.interactive = I_ALWAYS_YES;\n          break;\n        case 'i':\n          x.interactive = I_ASK_USER;\n          break;\n        case 'n':\n          x.interactive = I_ALWAYS_NO;\n          break;\n        case STRIP_TRAILING_SLASHES_OPTION:\n          remove_trailing_slashes = true;\n          break;\n        case 't':\n          if (target_directory)\n            error (EXIT_FAILURE, 0, _(\"multiple target directories specified\"));\n          else\n            {\n              struct stat st;\n              if (stat (optarg, &amp;st) != 0)\n                error (EXIT_FAILURE, errno, _(\"accessing %s\"), quote (optarg));\n              if (! S_ISDIR (st.st_mode))\n                error (EXIT_FAILURE, 0, _(\"target %s is not a directory\"),\n                       quote (optarg));\n            }\n          target_directory = optarg;\n          break;\n        case 'T':\n          no_target_directory = true;\n          break;\n        case 'u':\n          x.update = true;\n          break;\n        case 'v':\n          x.verbose = true;\n          break;\n        case 'S':\n          make_backups = true;\n          backup_suffix_string = optarg;\n          break;\n         case_GETOPT_HELP_CHAR;\n         case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);\n        default:\n          usage (EXIT_FAILURE);\n        }\n    }\n<\/pre>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/10606250\/macros-like-case-getopt-help-char-risky\" target=\"_blank\" rel=\"noopener\">http:\/\/stackoverflow.com\/questions\/10606250\/macros-like-case-getopt-help-char-risky<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $&gt; 1 $echo hello &gt; 1 $cat 1 hello $ls 1 $mv 1 2 $ls 2 $cat 2 hello $ http:\/\/pluto.infoclub.in\/wp-content\/uploads\/2013\/06\/mv.c code section while ((c = getopt_long (argc, argv, &#8220;bfint:uvS:T&#8221;, long_options, NULL)) != -1) { switch (c) { case &#8216;b&#8217;: make_backups = true; if (optarg) version_control_string = optarg; break; case &#8216;f&#8217;: x.interactive = &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2013\/06\/02\/mv-command-gnu-bash\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;mv  command GNU bash&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8458"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=8458"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8458\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=8458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=8458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=8458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}