Created
November 16, 2020 07:17
-
-
Save ayosec/19f61e01f43de55b3ad276923ed9258a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone --depth 1 https://github.com/torvalds/linux.git | |
cd linux | |
rg --json \ | |
--mmap \ | |
--multiline \ | |
'^SYSCALL_DEFINE\d+\s*?\((?s).*?\)' \ | |
| jq -r ' | |
select(.type == "match") | |
| .data.lines.text | |
| gsub("\\s+"; " ") | |
' \ | |
| sort -t\( -k2 \ | |
| uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment