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