extract.sh 271 B

1234567891011
  1. #! /bin/sh
  2. # SPDX-License-Identifier: GPL-2.0
  3. #
  4. # Extract an RPC protocol specification from an RFC document.
  5. # The version of this script comes from RFC 8166.
  6. #
  7. # Usage:
  8. # $ extract.sh < rfcNNNN.txt > protocol.x
  9. #
  10. grep '^ *///' | sed 's?^ */// ??' | sed 's?^ *///$??'