Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.misc > #9206
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Jolly Roger <jollyroger@pobox.com> |
| Newsgroups | comp.sys.mac.misc |
| Subject | 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) |
| Date | 30 May 2024 00:43:06 GMT |
| Organization | People for the Ethical Treatment of Pirates |
| Lines | 68 |
| Message-ID | <lbq0cqF5q02U2@mid.individual.net> (permalink) |
| References | <v0piqb$232f5$1@dont-email.me> <l9b5nmFo4r1U1@mid.individual.net> <l9cileF5vsU1@mid.individual.net> <v0rndv$2mnjk$1@dont-email.me> <l9db8kF3oojU1@mid.individual.net> <v0uumc$3k9ri$1@dont-email.me> <l9hqa1Fo6ppU1@mid.individual.net> <l9hqidFo6ppU2@mid.individual.net> <v10iqu$3vq29$1@dont-email.me> <v13blc$mktr$1@dont-email.me> <l9nkulFjv56U1@mid.individual.net> <v38hii$1c5h1$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net uEL93EMkkOwsPQKlzNa8JwkA1IhfevNmlXkYaTVxWW9JSGPpGi |
| Cancel-Lock | sha1:JVZo8ZHE7Fd66K4c6GAaAUuyifQ= sha256:HvoT43A/6kWejFMqeYUw5M5oFsyMnKn1/rZeTL/gEMU= |
| 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) |
| Xref | csiph.com comp.sys.mac.misc:9206 |
Show key headers only | View raw
On 2024-05-30, Dudley Brooks <dbrooks@runforyourlife.org> wrote: > 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 > > 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! You're welcome. Glad to hear it worked for you. You may find this funny. I was told just in the past day or two by a resident troll in the iPhone news group that I have never written a single line of code. He also claims I never made it through high school along with a bunch of other juvenile personal attacks. 🤣 -- 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
Back to comp.sys.mac.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra) Dudley Brooks <dbrooks@runforyourlife.org> - 2024-04-29 18:51 -0700
Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra) Jim Gibson <jimsgibson@gmail.com> - 2024-04-30 03:09 +0000
Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra) Jolly Roger <jollyroger@pobox.com> - 2024-04-30 15:56 +0000
Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra) Dudley Brooks <dbrooks@runforyourlife.org> - 2024-04-30 14:22 -0700
Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra) Jolly Roger <jollyroger@pobox.com> - 2024-04-30 22:56 +0000
Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra) Dudley Brooks <dbrooks@runforyourlife.org> - 2024-05-01 19:44 -0700
Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra) Jolly Roger <jollyroger@pobox.com> - 2024-05-02 15:37 +0000
Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra) Jolly Roger <jollyroger@pobox.com> - 2024-05-02 15:42 +0000
Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra) Dudley Brooks <dbrooks@runforyourlife.org> - 2024-05-02 10:34 -0700
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) Dudley Brooks <dbrooks@runforyourlife.org> - 2024-05-03 11:50 -0700
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) Jolly Roger <jollyroger@pobox.com> - 2024-05-04 20:43 +0000
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) Dudley Brooks <dbrooks@runforyourlife.org> - 2024-05-29 17:34 -0700
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) Jolly Roger <jollyroger@pobox.com> - 2024-05-30 00:43 +0000
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) Dudley Brooks <dbrooks@runforyourlife.org> - 2024-06-02 16:20 -0700
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) Your Name <YourName@YourISP.com> - 2024-06-03 12:17 +1200
Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra) Your Name <YourName@YourISP.com> - 2024-04-30 15:40 +1200
Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra) Dudley Brooks <dbrooks@runforyourlife.org> - 2024-04-30 14:27 -0700
csiph-web