summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/filebrowser/frontend-zenity.sh
blob: 44ae3855142b32bf411089b35c3d8851bb3d9f90 (plain) (blame)
1
2
3
4
5
6
#!/usr/bin/env bash
if [ "_$1" = "_" ];then
 echo "I need a backend script passed as first argument." >&2
 exit 1
fi
stdbuf -oL $1 < p | stdbuf -oL tr '\n' ' ' | sed -u 's/$/_/' | stdbuf -oL tr '_' '\n' | xargs -L1 zenity --list --column file > p