ruanyf / simple-bash-scripts Goto Github PK
View Code? Open in Web Editor NEWA collection of simple Bash scripts
A collection of simple Bash scripts
check this pr #40 .
Lets create a github action scripts to check if the shell scripts work and if a newly added one work as well.
Creating for all shell scripts can be hard, so if you guys feel its a good idea, we can divide the work and create issue and PR for each shell script in this.
This script has an output, which shows a text menu with few options 1,2,3..
What I want to do!!!
I want to run this script automatically and automatically selects option 2 on every start/reboot of Linux system.
I need some one to help me
#!/bin/bash
PS3='Please enter your choice: '
options=("Option 1" "Option 2" "Option 3" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Option 1")
echo "you chose choice 1"
;;
"Option 2")
echo "you chose choice 2"
;;
"Option 3")
echo "you chose choice 3"
;;
"Quit")
break
;;
*) echo invalid option;;
esac
done
Output is as follows:
"Choose your option:"
I also know that to run it automatically on every reboot, I need to give the complete path in /etc/rc.local file
But how to run this automatically on every reboot with automatic selection of option 2
Where:
nmap -p- -T4 127.0.0.1
See:
nmap -p -T4 127.0.0.1
Hello, under what license are these example scripts released under ? I would like to learn bash scripting from them. Thank-you.
I want to contribute in your repository, please help me in this regard. I am a new github user
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.