Sorry if this is poorly worded as I am new to shell script.
I'm trying to write a script and I want to take in args such as the unix date command does.
Example:
$ date '+%I:%M %p'
08:45 PM
So how would I do something like this in my script?
EDIT: What I'm trying to do in my script is pass arguments in the same fashion as the date command.
So if my script were to change all %a arguments to foo, it would do the following:
$ ./myscript '%a bar'
foo bar