-
Notifications
You must be signed in to change notification settings - Fork 57
What is a bash script
Jean-Michel Gigault edited this page Jan 8, 2015
·
21 revisions
A bash script is a simple file that contains ASCII text intended to be interpreted by the program bash, allowing you to do a logical sequence of actions by calling a simple line command instead of typing them one at a time in the shell.
The first line of a script should always tell the shell which program should interpret it:
\#!/bin/bash
echo "Hello World, I am a 42 student!"
Introduction:
- What is Bash
- What is a bash script
- What is 42FileChecker
- Contributing to 42FileChecker
Bash syntax:
Bash tools:
- Builtin commands
- Awk
- Cat
- Grep
- Sed
Bash sample codes:
- Script auto-update (git tool)
- Create an interactive menu
- Animated spinner with a time out
- Static var test
- Check the basic rules of a makefile
- Forbidden functions test
- Memory leak test script
- Create a speed test