- π± Programming growth: Python, Bash, Markdown and Arduinoo
- β Languages: Spanish, English, Portuguese & Esperanto
- π« Contact: [email protected]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#sve = System Variable Exemplifier | |
#This script executes whatever file you tell regardless of in which directory it's currently in. | |
script_help=$( cat << EOF | |
This script executes whatever file you tell regardless of | |
in which directory it's currently in. In order or execution, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if $COLORTERM == 'gnome-terminal' | |
set t_Co=256 | |
endif | |
set shell=bash | |
map <C-z> u | |
set nocompatible " be iMproved, required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_1=test_1; if [ -d "$file_1" ]; then echo -e "\nfile:\tββ\t$file_1\nstatus: exists"; else echo -e "file:\tββ\t$file_1\nstatus: does not exists\n"; read -p "Do you want to create $file_1? (y/n): " u_answer; case $u_answer in y|Y|yes|Yes|YES|YeS|YEs|yeS) echo -e "creating $file_1...\n"; `mkdir $file_1`; case "${?}" in 0) echo -e "\nfile: $file_1\nstatus: created"; ;; *) echo -e "ERROR: something happened\nthis might be caused because you don't have permission to write to this folder\nrun 'cd ..' & 'sudo chmod 775 your_folder'"; ;; esac; ;; n|N|No|nO|n0|N0|no) echo "Glad to help!"; ;; *) echo -e "ERROR: command $u_answer not recognized\nexiting the program..."; ;; esac; fi |
NewerOlder