Bash script: "Hello world!"

Bash script is very nice and important if one is using Unix system. Planning on using bash scripts as much as posible, I would like to share a quick and easy example to start using it:
Create a shell call hello.sh
Add the lines to the file:
#!/bin/bash
echo "Hello world!"
Go to the folder contains the file. Type bash hello.sh. The echo command will print out Hello world!your terminal

Comments

Popular posts from this blog

My books review: "The retrospective handbook"

My books review: Money for the rest of us

Use SwiftUI preview with UIKit