Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.3.0
-
None
-
Reviewed
Description
It would be useful to have a flag that made hadoop fs -ls only print filenames, instead of full stat info. The "-C" flag from GNU ls is the closest analog to this behavior that I've found, so I propose that as the flag.
Per this stackoverflow answer, I've reluctantly added a hadoop-ls-C wrapper that expands to hadoop fs -ls "$@" | sed 1d | perl -wlne'print +(split " ",$_,8)[7]' to a few projects I've worked on, and it would obviously be nice to have hadoop save me (and others) from such hackery.
Attachments
Attachments
Issue Links
- relates to
-
HADOOP-8934 Shell command ls should include sort options
- Resolved