7 lines
133 B
Bash
Executable File
7 lines
133 B
Bash
Executable File
#!/bin/sh
|
|
# A script that calls itself
|
|
|
|
recursion_count=${1:-0}
|
|
echo "Recursion number $recursion_count"
|
|
$0 $((recursion_count + 1))
|