Shell Script
Since I use Linux, I made this library so that I can use it in all of my projects including in GitHub Action
, Docker
without writing the same codes over and over again
- delete_directory (takes 1 argument)
- delete_file (takes 1 argument)
- copy_directory (takes 2 arguments)
- copy_file (takes 2 arguments)
- move_directory (takes 2 arguments)
- move_file (takes 2 arguments)
- black
- black_bold
- red
- red_bold
- green
- green_bold
- yellow
- yellow_bold
- blue
- blue_bold
- purple
- purple_bold
- cyan
- cyan_bold
- white
- white_bold
- show_action_completion_message
- show_error_message
- show_success_message
- show_info_message
- apt_prepare (updates, upgrades, autoremoves
apt
. Only fordebian
based linux distributions) - brew_prepare (updates, upgrades, autoremoves, cleans up
Homebrew
)
- Linux OS
- MacOS
curl -sSL https://raw.githubusercontent.com/skn437/skn-shell-utils/master/build.sh | bash
source "${HOME}/.shell-lib/ssu/main.sh"
delete_directory "path to the directory" delete_file "path to the file" copy directory "path to the input directory" "path to the output directory" copy_file "path to the input file" "path to the output file" move_directory "path to the input directory" " path to the output directory" move_file "path to the input file" "path to the output file"
blue "message here" red "message here"
show_error_message "this message will be printed red with cross mark" show_success_message "this message will be printed green with tick mark" show_info_message "this message will be printed blue with book info mark" show_action_completion_message "action name here"
apt_prepare brew_prepare
- 👩⚕️
Tanjila Hasan Trina
: The long lost love of my life. The course of nature separated us from our paths and put us in separate places far away from each other. But no matter how separated we are right now, each and every moment of mine is only dedicated to you. We may not see each other in this lifetime as it seems but I will find you again in the next life. I just want to say:世界は残酷だ それでも君を愛すよ
- 💯
My Parents
: The greatest treasures of my life ever.
Copyright (C) 2024 SKN Shukhan
Licensed under the MIT License