1 2 3 4 5 6 7 8
#!/bin/sh # Print a function or struct defintion from a C file # see https://sebastiano.tronto.net/blog/2022-06-12-shell-ide-sed name=$1 shift sed -n "/^$name/,/^}/ p" "$@"
Generated with cgit - Back to sebastiano.tronto.net