Skip to content

Instantly share code, notes, and snippets.

@ybur-yug
Created June 16, 2017 02:32
Show Gist options
  • Save ybur-yug/ca0f85dc9b3d085f4e8bb98adf94a437 to your computer and use it in GitHub Desktop.
Save ybur-yug/ca0f85dc9b3d085f4e8bb98adf94a437 to your computer and use it in GitHub Desktop.
# list the flags for `ls` that are NOT valid flags
man ls | ruby -n -e 'puts $_ if $_.include? " -"' | ruby -n -e 'a = $_.split(" "); puts a[1]' | ruby -n -e 'puts $_ if $_.include?("-")' > args && ruby -e 'puts http://File.read ("args").split("\n")[0..38]' > args2 && ruby -e 'puts ("a".."z").to_a - http://File.read ("args2").split("\n").map { |el| el.split("")[3] }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment