commit 75f41ec7cb028d3cbf95f9d7a60a4c79ccb32309 parent 1e61c1f6fa10e689ad5ee87ea3c928c9d64d0c81 Author: GeaRSiX <gearsix@tuta.io> Date: Mon, 12 Nov 2018 21:49:36 +0000 ♻️ updated doc in mkdmv.sh Diffstat:
M | mkdmv.sh | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mkdmv.sh b/mkdmv.sh @@ -1,14 +1,14 @@ #!/bin/bash # ~/scripts -# make a directory and move files into it -# e.g.$ mkdmv ~/new-dir ~/var/tmp/file1 ~/var/tmp/file2 ... +# make directory $1 and move files ($2...$n) into it +# e.g.$ mkdmv ~/new-dir ~/var/tmp/file* #mkdir $1 dir=$1; mkdir -p $dir shift; -#cp files into $1 +#cp files ($2...$n) into $1 for file in $@; do mv $file $dir; shift;