How does one list files in a directory by owner? I don't see an option for ls that does that. Maybe something else as simple? I don't remember ever seeing that done... Fred -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 4 Feb 2015 23:52, Stevens <fred-n-sandy@...> wrote:
How does one list files in a directory by owner? I don't see an option for ls that does that. Maybe something else as simple? I don't remember ever seeing that done...
I do not know of a ls option that would allow that. I'm using a function, combining ls and sort to do that. [code for bash] function lsu () { ls --color -l ${1+$"$@"} |LANG=C sort -k3; } [/code] Attn.: does not work with "-g" option - Yamaban. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Op woensdag 4 februari 2015 16:52:15 schreef Stevens:
How does one list files in a directory by owner? I don't see an option for ls that does that. Maybe something else as simple? I don't remember ever seeing that done...
Fred
ls -l <folder> | grep <username> -- fr.gr. Freek de Kruijf -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/04/2015 05:04 PM, Freek de Kruijf wrote:
Op woensdag 4 februari 2015 16:52:15 schreef Stevens:
How does one list files in a directory by owner? I don't see an option for ls that does that. Maybe something else as simple? I don't remember ever seeing that done...
Fred
ls -l <folder> | grep <username>
This is the simplest solution and I feel like an idiot that I didn't think of it. Simplicity often eludes me. Something about having engineer dna. Thanks Freek -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Have you thought of doing something like this? ls -l|awk '{print $3"\t"$9}'|sort On Wed, Feb 4, 2015 at 4:52 PM, Stevens <fred-n-sandy@myrhinomail.com> wrote:
How does one list files in a directory by owner? I don't see an option for ls that does that. Maybe something else as simple? I don't remember ever seeing that done...
Fred -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- JAY VOLLMER I write technical manuals; therefore I am a manual laborer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, You can use find for this find . -user <user> -maxdepth 1 -type f Best Regards, I. Petrov On 02/05/2015 01:05 AM, Jay Vollmer wrote:
Have you thought of doing something like this?
ls -l|awk '{print $3"\t"$9}'|sort
On Wed, Feb 4, 2015 at 4:52 PM, Stevens <fred-n-sandy@myrhinomail.com> wrote:
How does one list files in a directory by owner? I don't see an option for ls that does that. Maybe something else as simple? I don't remember ever seeing that done...
Fred -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU0qtcAAoJEH8sJoKRFRU5m78P/2JD8KwzF2zm0xYevFYCRZmF orBA8p1C4st07OoGFxifmBHJMTvfiVXOk0IPfnkZdBE6RkgjiMWIYzHPlkPgXlTu WqsjWkuijqDl/Zu02smA9rlE7WY6BTHCJCZ2b06YVVAJSIiJ1KXH1EQpvdgo9KHY PDRO+QcAlJkLIOIfPpDpaZQ4OiL7OV8g5B4azk73yLBfsjRA9JDoCckzahnfRVrL BprLpdZmuiWVE3F0r2Aw0ojlx3xmUDvu4RydSrJhLNzMoLuCxP9EKUD4iSymMr/e oN9fqZS9wKgp4gkPADILOHEU9o/wsIpvW9t7UKsYC1dUggKrPAwCO//evEVXEKTt 8jEy4aSt9dD8UVVx+uU8CUmDDOAgaPUC5qhB2lVGvsSx6A93FVopJ5KoFd8+QT52 lTmg8qaHw0Pw7Mu9u6j+DCuZUy4b6T4gJE2dCQ3pzKYKc4ofIrThFR3qIyJZkuPg +U5f45YBw1cKWBOlkY/P+B+LqSt8fgw5nBjFbe+Up2TXLEXLUYdgseWLH4MXpiU4 DfUa6YzBe3h9oZdgHPv0WFCufUW978jyyM2u8F9u0L0KRcTz2LMgLk+sjvtamB4d cQ8xQzAb1jALMN2HKWzT0hlc71AUtRYS043N5ODvdXcR8YtDjTIvVmFmw3KwGoJI MUbFlSKSzqNv1berwjJv =nWzZ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Freek de Kruijf
-
I.Petrov
-
Jay Vollmer
-
Stevens
-
Yamaban