1
0
dotfiles/gui/scripts/run-until-output.sh
erick-alcachofa ea989b8071
chore: Initial commit
Current dotfiles settings (previously hosted on github)
2025-03-01 21:43:33 -06:00

12 lines
160 B
Bash
Executable File

#!/usr/bin/env bash
match=$1
shift
bash -c 'echo "$$"; exec stdbuf -oL "$0" "$@"' $@ | (
read -r pid &&
sed "/$match/q" &&
kill -s PIPE "$pid"
)