You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

16 lines
152B

  1. #!/usr/bin/fish
  2. set pipe $argv[1]
  3. if test (count $argv) -ge 2
  4. echo $argv[2]
  5. end
  6. if [ ! -p $pipe ]
  7. exit 1
  8. end
  9. while [ -p $pipe ]
  10. cat $pipe
  11. end