scripts

My personal collection of scripts
git clone git://src.gearsix.net/scripts
Log | Files | Refs | Atom | README | LICENSE

commit ffd44542c0dd4824d8233638676c27fe6d09631f
parent 0ed140d46223f0f263629569641aed799a1caa47
Author: GeaRSiX <gearsix@tuta.io>
Date:   Fri, 14 Feb 2020 12:20:19 +0000

added mkdcd;
minor fix to gfind;
permission change on git-cfg;

Diffstat:
Msrc/gfind.sh | 2+-
Msrc/git-cfg.sh | 0
Asrc/mkdcd.sh | 9+++++++++
3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/gfind.sh b/src/gfind.sh @@ -3,5 +3,5 @@ # description: find files containing string $2 in directory/file $1 # e.g.$ gfind dogs/ "shades" -grep -rnw $1 -e $2 #recursive, print line #, match whole word +grep -rnw $1 -e "$2" #recursive, print line #, match whole word diff --git a/src/git-cfg.sh b/src/git-cfg.sh diff --git a/src/mkdcd.sh b/src/mkdcd.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# mkdmv (mkdir & cd) +# description: mkdir $1 && cd into it +# e.g.$ mkdmv ~/new-dir + +dir=$1 + +mkdir -p $dir +cd $dir