View Single Post
Old 07-20-22, 02:20 PM   #6
Ataraxzy
Watch
 
Join Date: Apr 2021
Posts: 16
Downloads: 37
Uploads: 0
Default

Quote:
Originally Posted by propbeanie View Post
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!



Here's another oneliner to help you out:


Code:
grep -r "mm\.dd\.yyyy" -A 1
Run that in the .../Radio subfolder. It will return all StartDate and StartTime for the particular day you've put in. (Or return nothing if there's nothing scheduled for that day.)

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
Will get you everything that matches that particular year


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.
Ataraxzy is offline   Reply With Quote