diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-08-28 20:31:18 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-08-28 20:31:28 +0200 |
commit | 5fe661541c3d6c3282332bc1ee920b65486d3a10 (patch) | |
tree | 7a289d09dcf05df5222c107bc0334cc8a622e625 /scripts | |
parent | ee0086c365c19587d9db0c26075bec4950b059f5 (diff) |
scripts/sortman: Treat [_-] as a space
This sorts 'cat-woman' next to 'cat', before 'catatonic'.
Suggested-by: Brian Inglis <Brian.Inglis@Shaw.ca>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/sortman | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sortman b/scripts/sortman index a8f70bab5..6d1d92f09 100755 --- a/scripts/sortman +++ b/scripts/sortman @@ -9,7 +9,7 @@ sed -E '/\/intro./ s/.*\.([[:digit:]])/\10\t&/' \ | sed -E ' s/\t(.*)/&\n\1/' \ | sed -E '/\t/ s/\.[[:digit:]]([[:alpha:]][[:alnum:]]*)?\>.*//' \ | sed -E '/\t/ s/\/[_-]*/\//g' \ -| sed -E '/\t/ s/[_-]/_/g' \ +| sed -E '/\t/ s/[_-]/ /g' \ | sed -E '/\t/ {N;s/\n/\t/;}' \ | sort -fV -k1,2 \ | cut -f3; |