What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-08 10:10:06
special bash variables
here are a few other variables that the system sets for you to use as well. $0 - The name of the Bash script. $1 - $9 - The first 9 arguments to the Bash script. (As mentioned above.) $# - How many arguments were passed to the Bash script. $@ - All the a... Add solution -
Shell/Bash 2021-09-21 05:28:02
write a program in shell script to find factorial of a number
#Bash script to find factorial of a number echo -n "Enter a number: " read number factorial=1 for(( i=1; i<=number; i++ )) do factorial=$[ $factorial * $i ] done echo "The factorial of $number is $factorial" Add solution -
Shell/Bash 2021-08-27 15:44:01
Could not start Firestore Emulator, port taken mac
# kill process running in port 9000 lsof -ti tcp:9000 | xargs kill -9 # create a bash script - kill-ports.bash # copy and paste the below script #Stop following command execution if command before failed set -e kill_functions_port() { # functions em... Add solution