Bash에서 명령 출력을 명령으로 가져 오려면 어떻게해야합니까?
체계 Linux hosek 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux 발행물 변수를 저장하려면 bash 스크립트에서 명령으로 출력을 가져와야합니다. 예 sed -n '/# Main configuration./,/# Websites./p' webcheck-$category.cfg | sed '1,1d' | sed '$ d' 이 명령은 다음 줄을 반환합니다. email_sender='some@email.com' email_recipients='another@email.com' 스크립트에서 이러한 출력 / …