Created
February 7, 2019 03:43
-
-
Save nakamuray/f70221e02862f6ed526873d3996a1644 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# XXX: 雑 | |
mkdir -p ~/.piping | |
if [ "$1" = "-w" ]; then | |
mkfifo ~/.piping/"$2" || exit 1 | |
cat > ~/.piping/"$2" | |
rm ~/.piping/"$2" | |
elif [ "$1" = "-r" ]; then | |
cat ~/.piping/"$2" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
送信:
受信: