GNU bug report logs -
#40904
listing multiple subdirectories places filenames in different columns between each subdirectory
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40904 in the body.
You can then email your comments to 40904 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#40904
; Package
coreutils
.
(Mon, 27 Apr 2020 14:50:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jim Clark <jim.clark.ubuntu <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Mon, 27 Apr 2020 14:50:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Greetings,
When I list a hard drive "ls -AR > list.txt" and import it into Libreoffice
Calc, then break the lines using "text-to-columns", I am not able to
perform a fixed format break so that the filenames are placed in their own
column.
It seems like, when listing all subdirectories the largest file size within
the subdirectory places the filename at a column and all the other names in
that subdirectory are at the same column, but other subdirectories will
have their filenames at different columns depending on file size within
that subdirectory.
It would be nice if all the filenames were at the same column in the
directory and all subdirectories.
--
Thank you,
Jim Clark
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#40904
; Package
coreutils
.
(Mon, 27 Apr 2020 16:54:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 40904 <at> debbugs.gnu.org (full text, mbox):
On 4/27/20 7:36 AM, Jim Clark wrote:
> When I list a hard drive "ls -AR > list.txt" and import it into Libreoffice
> Calc, then break the lines using "text-to-columns", I am not able to
> perform a fixed format break so that the filenames are placed in their own
> column.
I can't reproduce the problem. All the file names start at the beginning of the
line. Quite possibly you're using an alias, so that your 'ls' is not the plain
vanilla 'ls'. At any rate, 'find' is probably a better tool for what you want to d.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#40904
; Package
coreutils
.
(Thu, 30 Apr 2020 05:05:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 40904 <at> debbugs.gnu.org (full text, mbox):
tag 40904 + notabug
close 40904
thanks
Jim Clark wrote:
> When I list a hard drive "ls -AR > list.txt" and import it into Libreoffice
> Calc, then break the lines using "text-to-columns", I am not able to
> perform a fixed format break so that the filenames are placed in their own
> column.
>
> It seems like, when listing all subdirectories the largest file size within
> the subdirectory places the filename at a column and all the other names in
> that subdirectory are at the same column, but other subdirectories will
> have their filenames at different columns depending on file size within
> that subdirectory.
File size? Your example used "ls -AR" which does not include the file
size. Therefore I am going to close the ticket for the purpose of
accounting. Since there is no bug here.
But please let further discussion follow. The ticket can be reopened
or reassigned easily if that is determined.
> It would be nice if all the filenames were at the same column in the
> directory and all subdirectories.
If you are trying to use "ls -lAR" then each directory is listed
individually and what you are saying is true. However that is the way
the GNU ls program is designed to work. Each directory is listed
individually with column spacing applied to that directory.
As Paul recommended, it is likely better for you to use find instead.
Since you apparently want the long listing format then perhaps:
find . -ls
That will produce a full recursive long listing all of the way down.
It will use a wide fixed spacing which is apparently what you want.
I am curious. I can't imagine any reason to import a recursive file
listing into a spreadsheet... What is the task goal you are trying to
do there?
Bob
Added tag(s) notabug.
Request was from
Bob Proulx <bob <at> proulx.com>
to
control <at> debbugs.gnu.org
.
(Thu, 30 Apr 2020 05:05:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
40904 <at> debbugs.gnu.org and Jim Clark <jim.clark.ubuntu <at> gmail.com>
Request was from
Bob Proulx <bob <at> proulx.com>
to
control <at> debbugs.gnu.org
.
(Thu, 30 Apr 2020 05:05:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 28 May 2020 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.