Find external IP

Multiple commands on the same line

You can put multiple commands on the same line by separating them with a semicolon ;

For example

if [ “$?” -eq “0” ]; then
# do something
fi

Make script executable

chmod +x foo.sh

Please note that this site and the posts on it are, and will always be, a work in progress. If i waited for perfection, i’d never get anything done.
A project of 29 CONCEPTS SMC-PVT LTD. Created with by Aamnah. All content is licensed under Creative Commons CC BY-SA 4.0