I have an alias in .bashrc like this:
alias ylog = "yarn logs -applicationId"
This works well when I do ylog application_123.
Sometimes, my job names come in the form of job_123 instead of application_123 and in order to get ylog I need to manually replace the text "job" by "application" in my command line.
Is it possible to improve the alias so that the following happens:
ylog job_123resolves toylog application_123ylog application_123resolves toylog application_123