add license, move folders

This commit is contained in:
Nordup 2024-05-04 00:14:24 +04:00
parent 185cc74060
commit 271c4a46a1
132 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#!/bin/bash
extract_child_pid() {
echo "$(ps --ppid $1)" | grep -oE '^[[:space:]]*[0-9]+' | awk '{print $1}'
}
pid=$1
while [[ -n "$pid" ]]; do
pid=$(extract_child_pid "$pid")
if [[ -n "$pid" ]]; then
echo "$pid"
fi
done