xref: /linux/tools/net/sunrpc/extract.sh (revision 523d3cc4b6d1ae18bfa516345d48332d455181e6)
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
11grep '^ *///' | sed 's?^ */// ??' | sed 's?^ *///$??'
12