Last active
December 10, 2015 04:08
-
-
Save maeharin/4378658 to your computer and use it in GitHub Desktop.
ruby one liner
This file contains hidden or 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
# directory name | |
ls -laF | ruby -e '$stdin.read.scan(%r![\S]+/!) {|m| puts m}' | |
# or | |
ls -laF | ruby -ne 'puts $_.split("\s")[8]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment