I have a pretty standard directory higherachy, year, month, date, for log files. If I want to go to todays logs I have to type cd logs/2015/12/16/
By itself this wouldn't be bad, but since I actually have dozens of different logs and jump between them often it gets tedious. I want to write a quick alias or script to allow me to quickly jump to today's directory.
I could do this with awk or sed and string manipulation, but I feel like this is over complicating it. is there a simpler tool for doing this then trying to parse and interpret the directories themselves?
Ultimately my final alias/script would likely allow me to do something like "goLog foo" to go to the latest directory of the foo subdirectory of logs, with "goLog bar" doing the same with the bar subdirectory etc.