Deutsch   English   Français   Italiano  
<l9db8kF3oojU1@mid.individual.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Jolly Roger <jollyroger@pobox.com>
Newsgroups: comp.sys.mac.misc
Subject: Re: Print (or export to a spreadsheet) all the information
 displayed when Finder is looking at a folder (OS X 10.13 High Sierra)
Date: 30 Apr 2024 22:56:20 GMT
Organization: People for the Ethical Treatment of Pirates
Lines: 66
Message-ID: <l9db8kF3oojU1@mid.individual.net>
References: <v0piqb$232f5$1@dont-email.me>
 <l9b5nmFo4r1U1@mid.individual.net> <l9cileF5vsU1@mid.individual.net>
 <v0rndv$2mnjk$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net G8xba+ZbQc23UajaGpYPog/9Y5aq6Mo3JroTonTSvEHZnNYIx5
Cancel-Lock: sha1:siTJC47pR/5j9Gx4Qf3vzCU3sj0= sha256:+9+1YUw0UeYQEJSNSUpZKbhYkeN3DBMfyUrgbHz1VUg=
Mail-Copies-To: nobody
X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1<n@LQ!aZ7vLO_nWbK~@T'XIS0,oAJcU.qLM
 dk/j8Udo?O"o9B9Jyx+ez2:B<nx(k3EdHnTvB]'eoVaR495,Rv~/vPa[e^JI+^h5Zk*i`Q;ezqDW<
 ZFs6kmAJWZjOH\8[$$7jm,Ogw3C_%QM'|H6nygNGhhl+@}n30Nz(^vWo@h>Y%b|b-Y~()~\t,LZ3e
 up1/bO{=-)
User-Agent: slrn/1.0.3 (Darwin)
Bytes: 3744

On 2024-04-30, Dudley Brooks <dbrooks@runforyourlife.org> wrote:
> On 4/30/24 8:56 AM, Jolly Roger wrote:
>
>> On 2024-04-30, Jim Gibson <jimsgibson@gmail.com> wrote:
>>
>>> 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,
>
> Thanks!  That's EXACTLY what I'm looking for.
>
> Ironically, I had actually done "man stat" ... but I didn't see all 
> those formatting parameters.  I must have been looking way too late at 
> night ... when my brain turns into a pumpkin.
>
>> I would use comma characters for delimiters to make it a CSV file, then
>> open that in a spreadsheet program.
>
> I 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.)
>
> One more thing, if either of you knows why this might be:
>
> If <filename> has not already been created, I get an error message.
>
> If I create <filename> first, there's no error message, and it seems to 
> be running fine ... except ... it doesn't seem to do anything -- nothing 
> gets written to <filename>!
>
> Any ideas?  Maybe it's another casualty of over-full HD?

What is the command you are using, and what is the error output?

-- 
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR