Script'te Veri Akışı: Pipe, Redirection, Here-doc, Process Substitution ve xargs
Script'te stdout yalnız veri, stderr mesaj taşımalı; pipeline'ın exit code'u varsayılan olarak son komutunkidir, PIPESTATUS ve pipefail ile görünür olur. Bookstore'un deploy script'ine exec ve tee ile log dosyası, here-doc ile RELEASE dosyası ekliyor; pipe'tan beslenen döngünün kaybettiği variable'ı < <(...) ile kurtarıyor, xargs -0 -P ile paralel çalıştırıyor ve jq ile JSON rapor üretiyoruz.
15 Kas 2026
·
18 dk
·
17