Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73ABE105C3 for ; Fri, 1 May 2015 13:04:06 +0000 (UTC) Received: (qmail 49427 invoked by uid 500); 1 May 2015 13:04:06 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 49379 invoked by uid 500); 1 May 2015 13:04:06 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 49367 invoked by uid 99); 1 May 2015 13:04:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2015 13:04:06 +0000 Date: Fri, 1 May 2015 13:04:06 +0000 (UTC) From: "Kengo Seki (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-10971) Flag to make `hadoop fs -ls` print filenames only MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-10971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kengo Seki updated HADOOP-10971: -------------------------------- Assignee: Kengo Seki Status: Patch Available (was: Open) > Flag to make `hadoop fs -ls` print filenames only > ------------------------------------------------- > > Key: HADOOP-10971 > URL: https://issues.apache.org/jira/browse/HADOOP-10971 > Project: Hadoop Common > Issue Type: Improvement > Components: fs > Affects Versions: 2.3.0 > Reporter: Ryan Williams > Assignee: Kengo Seki > Attachments: HADOOP-10971.001.patch > > > 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|http://stackoverflow.com/a/21574829], 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)