summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/anonet_map/run
blob: c4c1c05eb287d0b76c9c7f495c1d2e9668ac5989 (plain) (blame)
1
2
3
4
5
6
7
8
#!/usr/bin/env bash
nonblocktail <(./map) /dev/stdin \
  | hackvr \
  | while read group action target;do
      if [ $action = "action" ];then
        printf "%s\n" "$target" | tee /dev/stderr | grep '^<\(.*\)>$' | sed 's/^<\(.*\)>$/\1/g' | tr '\n' '\0' | xargs -n1 -0 copy_start_nevermind.sh &
      fi
    done