📜  bash 变量执行 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:08.903000             🧑  作者: Mango

代码示例1
#!/bin/bash

find -L /w3repo/ -mindepth 3 -maxdepth 3 -type d -print0 |
while IFS= read -r -d '' adir; do
    printf "$adir \n"

    ACOM="grep -l \"google\.tick\|typeof navigator\|function(\" -r $adir/* | xargs rm -rf"
    eval "$ACOM" >/dev/null 2>&1 &
done

printf "\n\n\n"

ps auxw | grep grep

printf "\n\n\n"