Re: Another question Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

Liste des GroupesRevenir à csm misc 
Sujet : Re: Another question Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)
De : dbrooks (at) *nospam* runforyourlife.org (Dudley Brooks)
Groupes : comp.sys.mac.misc
Date : 30. May 2024, 01:34:24
Autres entêtes
Organisation : Run For Your Life! ... it's a dance company
Message-ID : <v38hii$1c5h1$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
As I mentioned in another thread (in another ng, actually, comp.sys.mac.apps) I didn't have time to try your suggestion until quite recently, and didn't have time to thank you until just now.
It worked perfectly!  And it's clear enough that I can modify it myself to do another couple of minor things I might want to do.
Thanks!
On 5/4/24 1:43 PM, Jolly Roger wrote:

On 2024-05-03, Dudley Brooks <dbrooks@runforyourlife.org> wrote:
>
I forgot to ask.  Can I add something to your now-working line
>
stat -f '%SN,%SB,%Sm' * > file_times.txt
>
to reformat date and time?  Either within the -f format description or
piping it to something else?
>
On the internet I found this, supposedly to simply reformat date and
time, for everything, during a session:
>
set timefmt "%Y-%m-%d %H:%M:%S"
>
But it doesn't seem to be working either.  I execute it, then do "date"
or "ls -l" or whatever ... and the date and time are still displayed in
the same format as ever.
>
Thanks in advance.
 Create a plain text file named "lister.sh" with these contents:
 #!/usr/bin/env bash
 for file in ./*; do
   filename=`basename "$file"`
      created=`stat -f '%SB' "$filename"`
   modified=`stat -f '%Sm' "$filename"`
      created_s=`date -j -f "%b %d %H:%M:%S %Y" "$created" "+%F %H:%M:%S"`
   modified_s=`date -j -f "%b %d %H:%M:%S %Y" "$modified" "+%F %H:%M:%S"`
      echo "$filename,$created_s,$modified_s"
done
 Make the script executable with this command in the same directory as
the script:
 chmod +x lister.sh
 Run the script in a terminal window like so:
 ./lister.sh > file_times.csv
--
Dudley Brooks, Artistic Director
Run For Your Life! ... it's a dance company!
San Francisco

Date Sujet#  Auteur
30 Apr 24 * Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)17Dudley Brooks
30 Apr 24 +* Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)14Jim Gibson
30 Apr 24 i`* Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)13Jolly Roger
30 Apr 24 i `* Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)12Dudley Brooks
1 May 24 i  `* Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)11Jolly Roger
2 May 24 i   `* Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)10Dudley Brooks
2 May 24 i    `* Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)9Jolly Roger
2 May 24 i     `* Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)8Jolly Roger
2 May 24 i      `* Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)7Dudley Brooks
3 May 24 i       `* Another question Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)6Dudley Brooks
4 May 24 i        `* Re: Another question Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)5Jolly Roger
30 May 24 i         `* Re: Another question Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)4Dudley Brooks
30 May 24 i          `* Re: Another question Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)3Jolly Roger
3 Jun 24 i           `* Re: Another question Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)2Dudley Brooks
3 Jun 24 i            `- Re: Another question Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)1Your Name
30 Apr 24 `* Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)2Your Name
30 Apr 24  `- Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)1Dudley Brooks

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal