xref: /linux/tools/net/sunrpc/extract.sh (revision b8f7622aa6e32d6fd750697b99d8ce19ad8e66d0)
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