Liste des Groupes | Revenir à csm misc |
On 2024-04-30, Jim Gibson <jimsgibson@gmail.com> wrote:Thanks! That's EXACTLY what I'm looking for.
>On Apr 29, 2024 at 6:51:05 PM PDT, "Dudley Brooks"
<dbrooks@runforyourlife.org> wrote:
>I want to print out all the File Names, their Creation Dates, and their>
Modification Dates. (Printing all the other info is fine too.) If
possible, I would like to do it in a form that can be easily put into a
You can use the stat utility in a command-line shell in the Terminal
application to print out creation and modification times for any file.
>
Use 'man stat' for details. Use the -f option to specifiy the content and
format for the fields to be displayed.
>
You want the following format specifiers:
>
%SN to display the file name
%SB to display the creation (birth) time
%Sm to display the modification time
%t to insert tab characters between fields
>
So the following should give you what you want:
>
stat -f '%SN%t%SB%t%Sm' *
>
Redirect the output to a file:
>
stat -f '%SN%t%SB%t%Sm' * > file_times.txt
>
and you can import that into a spreadsheet specifying tab characters to
separate columns,
I would use comma characters for delimiters to make it a CSV file, thenI was just thinking about that. Thanks! (I think Excel can separate on tabs as well, though. But it's always good to have different options. And maybe it saves you from having to do copy-and-paste.)
open that in a spreadsheet program.
Les messages affichés proviennent d'usenet.