SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
07-19-22, 06:15 AM | #1 |
CTD - it's not just a job
|
Exactly!! lol - much easier to use the Delete key to get rid of those you don't want / need, than to have to find and build the ones you want. Very nice, Ataraxzy!
|
07-19-22, 12:18 PM | #2 | ||
Watch
Join Date: Apr 2021
Posts: 16
Downloads: 37
Uploads: 0
|
Quote:
That's how this started, but I looked at the nearly 100Gb of sound files I'd downloaded and silently cried. Then I went, "Waitaminute... I can automate this." Quote:
I just hope someone finds this useful. |
||
07-20-22, 10:18 AM | #3 |
CTD - it's not just a job
|
This idea is definitely useful to me, Ataraxzy. I just have to remember to bookmark this, so I can find it later when we go to do a radio mod... Thank you again!
|
07-20-22, 02:20 PM | #4 | |
Watch
Join Date: Apr 2021
Posts: 16
Downloads: 37
Uploads: 0
|
Quote:
Here's another oneliner to help you out: Code:
grep -r "mm\.dd\.yyyy" -A 1 If you want, I've downloaded ~67gb of Radio files from various mod sources. I could upload them somewhere in chunks. All the work is already done, all you'd have to do is download them. Code:
grep -r "\.yyyy" -A 1 examples: Code:
$ grep -r "06\.12\.1941" -A 1 KGMB/Events/events.ini:StartDate=06.12.1941 KGMB/Events/events.ini-StartTime=19.30.00 -- KLVW/1941/Events/events.ini:StartDate=06.12.1941 KLVW/1941/Events/events.ini-StartTime=17.00.00 -- KNX/1941/Events/events.ini:StartDate=06.12.1941 KNX/1941/Events/events.ini-StartTime=15.45.00 $ grep -r "\.1939" -A 1 DHB/Events/events.ini:StartDate=12.09.1939 DHB/Events/events.ini-StartTime=12.00.00 -- DHB/Events/events.ini:StartDate=01.10.1939 DHB/Events/events.ini-StartTime=12.00.00 -- DHB/Events/events.ini:StartDate=01.11.1939 DHB/Events/events.ini-StartTime=12.00.00 ... ... in the oneliner: -A 1 gets you the "following line" -B 1 gets you the "preceding line" -C 1 gets you BOTH. increase the number to get more than just the next/previous lines. Last edited by Ataraxzy; 07-20-22 at 02:41 PM. |
|
07-20-22, 02:49 PM | #5 |
CTD - it's not just a job
|
Thanks for the offer of the broadcasts, but I already have most that I use, but I'm building one that would definitely benefit from your scripts... excellent, and sorting by date is good too! Thank yoiu!
|
07-20-22, 03:15 PM | #6 |
Watch
Join Date: Apr 2021
Posts: 16
Downloads: 37
Uploads: 0
|
Kick ass!
Lemme know when it's done, I wanna see it! And if you have any questions, have an idea for another oneliner, lemme know. |
07-20-22, 03:33 PM | #7 |
CTD - it's not just a job
|
Copy that! Will do.
|
Tags |
events, radio, scripts, sound mods |
|
|