You can still parse the hadoop ls ouput with bash and sort it (revert, cut, sort, etc.), but that will read all the entries, just just the x first one...
2013/5/7 Winston Lin <[email protected]>: > look like we cannot even sort the output of ls by date with fs command? > > In *ux system, we can do ls -t ...to sort by modification time, newest > first > > Winston > > > > > On Wed, May 8, 2013 at 1:47 PM, Mohammad Tariq <[email protected]> wrote: >> >> I don't think any such thing is available OOTB. >> >> Warm Regards, >> Tariq >> https://mtariq.jux.com/ >> cloudfront.blogspot.com >> >> >> On Wed, May 8, 2013 at 8:51 AM, Rahul Bhattacharjee >> <[email protected]> wrote: >>> >>> Is any such option available in other posix shells? >>> >>> >>> On Wednesday, May 8, 2013, Winston Lin wrote: >>>> >>>> Any idea to get recent changed file in hadoop? e.g. files created >>>> yesterday? >>>> >>>> fs -ls will only give us all the files. >>>> >>>> Thanks >>>> Winston >>> >>> >>> >>> -- >>> Sent from Gmail Mobile >> >> >
