Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / net / sunrpc / extract.sh
blobf944066f25bcc830eededbcdf8ce82e6daa2405f
1 #! /bin/sh
2 # SPDX-License-Identifier: GPL-2.0
4 # Extract an RPC protocol specification from an RFC document.
5 # The version of this script comes from RFC 8166.
7 # Usage:
8 # $ extract.sh < rfcNNNN.txt > protocol.x
11 grep '^ *///' | sed 's?^ */// ??' | sed 's?^ *///$??'