Hello world! I'm /usr/local/bin/index.sh and I can run shit like ls -lah /etc:
total 192K drwxr-xr-x 1 root root 4.0K Oct 5 2020 . drwxr-xr-x 1 root root 4.0K Oct 5 2020 .. -rw-r--r-- 1 root root 7 May 29 2020 alpine-release drwxr-xr-x 1 root root 4.0K Oct 5 2020 apk drwxr-xr-x 3 root root 4.0K Oct 5 2020 ca-certificates -rw-r--r-- 1 root root 5.5K Jun 18 2020 ca-certificates.conf drwxr-xr-x 1 root root 4.0K Oct 5 2020 conf.d drwxr-xr-x 2 root root 4.0K May 29 2020 crontabs -rw-r--r-- 1 root root 89 May 28 2020 fstab -rw-r--r-- 1 root root 729 Oct 5 2020 group -rw-r--r-- 1 root root 720 Oct 5 2020 group- -rw-r--r-- 1 root root 13 Jan 22 19:26 hostname -rw-r--r-- 1 root root 172 Jan 22 19:26 hosts drwxr-xr-x 1 root root 4.0K Oct 5 2020 init.d -rw-r--r-- 1 root root 570 May 28 2020 inittab -rw-r--r-- 1 root root 1.7K Feb 9 2020 inputrc -rw-r--r-- 1 root root 54 May 29 2020 issue drwxr-xr-x 1 root root 4.0K Oct 5 2020 logrotate.d drwxr-xr-x 2 root root 4.0K May 29 2020 modprobe.d -rw-r--r-- 1 root root 15 May 28 2020 modules drwxr-xr-x 2 root root 4.0K May 29 2020 modules-load.d -rw-r--r-- 1 root root 283 May 28 2020 motd lrwxrwxrwx 1 root root 12 Oct 5 2020 mtab -> /proc/mounts drwxr-xr-x 8 root root 4.0K May 29 2020 network drwxr-xr-x 1 root root 4.0K Oct 5 2020 nginx drwxr-xr-x 2 root root 4.0K May 29 2020 opt -rw-r--r-- 1 root root 164 May 29 2020 os-release -rw-r--r-- 1 root root 1.3K Oct 5 2020 passwd -rw-r--r-- 1 root root 1.2K Oct 5 2020 passwd- drwxr-xr-x 7 root root 4.0K May 29 2020 periodic -rw-r--r-- 1 root root 238 May 28 2020 profile drwxr-xr-x 2 root root 4.0K May 29 2020 profile.d -rw-r--r-- 1 root root 1.8K May 28 2020 protocols -rw-r--r-- 1 root root 325 Jan 22 19:26 resolv.conf -rw-r--r-- 1 root root 65 May 22 2020 securetty -rw-r--r-- 1 root root 14.1K May 28 2020 services -rw-r----- 1 root shadow 479 Oct 5 2020 shadow -rw-r----- 1 root shadow 449 Oct 5 2020 shadow- -rw-r--r-- 1 root root 48 Oct 5 2020 shells drwxr-xr-x 1 root root 4.0K May 29 2020 ssl -rw-r--r-- 1 root root 53 May 28 2020 sysctl.conf drwxr-xr-x 2 root root 4.0K May 29 2020 sysctl.d drwxr-xr-x 13 root root 4.0K Oct 5 2020 terminfo -rw-r--r-- 1 root root 5.2K May 22 2020 udhcpd.conf
Or run tail /var/log/nginx/access-log with tail-access-log.sh.
Here's a script curl'ing example.com: example.sh.
And here's a script with a simple for loop:
ARR=("kurwa" "mac" "ja" "pierdole")
for a in ${ARR[@]}; do
echo "$a"
done
See it in action!