Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Silly bash tricks
#!/bin/bash
tasklist="Task1 Task2"
Task1 () {
echo "task 1"
}
Task2 () {
echo "task 2"
}
for func in $tasklist; do
$func
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.