-
-
Save JoshCheek/55bea2e6b3b03760440f113a0df3f99d to your computer and use it in GitHub Desktop.
Options which aren't valid one-letter flags for ls
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
#!/usr/bin/env bash | |
man ls | col -b | ruby -ane ' | |
BEGIN { valid = [] } | |
END { puts [*?a..?z, *?A..?Z, *?0..?9] - valid } | |
$F[0] =~ /^-(\S)$/ && valid << $1 | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment