Skip to content

Instantly share code, notes, and snippets.

Nasik Shafeek kisanme

Block or report user

Report or block kisanme

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kisanme
kisanme / mvdir.sh
Last active Jul 2, 2016
Bash script to move file or directories by creating a directory if the target directory does not exist.
View mvdir.sh
#!/bin/bash
# mvdir file path/to/folder
# Condition to test whether there are 2 input
# And condtition to test whether first parameter is a file/directory
if [ $# -eq 2 ] && [ -e $1 ]
then
file=$1;
targetPath=$2;
You can’t perform that action at this time.