Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 541 Bytes

004_Writing_first_script.md

File metadata and controls

24 lines (17 loc) · 541 Bytes

Writing First Script

SHEBANG --- HOME --- BASIC VI COMMANDS

To create a shell script :

  1. Use a text editor to create a shell script.
  2. Save and close the Script file.
  3. Make the script executable.
  4. Run and test the script.

Create a file hello.sh

#!/bin/bash
echo "Hello Kshitiz!"
echo "Testing Shell Script, if working."
echo "YoHoo, successfully created first Shell Script."

Save and close the file.

Run the file.