commandline session $> 1 $echo hello > 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, “bfint:uvS:T”, long_options, NULL)) != -1) { switch (c) { case ‘b’: make_backups = true; if (optarg) version_control_string = optarg; break; case ‘f’: x.interactive = …
Monthly Archives: June 2013
cp command GNU bash
commandline session $> 1 $echo hello > 2 $cat 1 $ $cat 2 hello $cp -b 2 cp: missing destination file operand after ‘2’ Try ‘cp –help’ for more information. $cp -b 2 2b $ls 1 2 2b $cat 2b hello $cp -x 2b 2c $ls 1 2 2b 2c $cat 2c hello $cp -x …