Test with /bin/bash heading
public text v1 · immutableixti@cervantes:~$ cat test.sh
#!/bin/bash
ps aux | grep test.sh | grep -v 'grep test.sh' | while read PID_LINE; do
echo $PID_LINE
done
ixti@cervantes:~$ ./test.sh
ixti 12518 0.0 0.4 4084 1136 pts/5 R+ 13:51 0:00 /bin/bash ./test.sh
ixti 12520 0.0 0.0 4084 180 pts/5 R+ 13:51 0:00 /bin/bash ./test.sh