bk-codetest-cli
v1.0.1
Published
BK's Unix Commands
Downloads
2
Readme
BK's CLI
Installation
npm i -g bk-codetest-cli
Usage
bk [command] -h
Commands
touch
create empty, change access or modification time
Usage
bk touch [option] <file1> <file2> <file3> ...
ex: bk touch file1.txt file2.txt file3.txt
bk -m touch <file1> <file2> <file3> ...
ex: bk touch -m file1.txt file2.txt file3.txt
ls
list directory contents
Usage
bk ls
find
find files
Usage
bk find [option] <starting directory> <matching criteria>
ex: bk find . '.txt'
ex: bk find bin/ '.js'
ex: bk find -name . '.txt'
ex: bk find . -name '.txt' -delete
sed
stream editor
Usage
bk sed <script> <input-file> [option]
ex: bk sed s/Bala/Balu/ file1.txt
bk sed -w <output-file> <script> <input-file>
ex: bk sed -w output.txt s/Balu/Bala/ file1.txt
bk sed -n <script> <input-file>
ex: bk sed -n s/Balu/Bala/ file.txt
bk sed <script>
ex: bk sed s/Bala/Balu/ (allows to read online text and print, command + c to exit)
mv
move or rename files
Usage
bk mv [option] <source> <target>
ex: bk mv file1.txt file4.txt
ex: bk mv -i file1.txt file4.txt
Linting
npm run lint