I am new to UNIX.
I was typing "history" at the command line to pull up my command history. It pulled up about 20 of the most previous commands.
Then I learned that I could just type "h" and it would scroll through every command for the session (I think; like about 2000 commands). The question is, is there a way to put an option on the "h" command to have it return only those commands that meet the criteria of the option?
For example, I am running SAS batch code, so I often type:
emacs mysasfile.sas
to create a batch program.
then I just type:
sas mysasfile
to execute the batch program.
then I type:
emacs mysasfile.log
to look at the log of the execution.
Is there a way to say:
h|*.log
so that the command list history contains only those commands that ended in .log??
Thanking you in advance.
Mike K
I was typing "history" at the command line to pull up my command history. It pulled up about 20 of the most previous commands.
Then I learned that I could just type "h" and it would scroll through every command for the session (I think; like about 2000 commands). The question is, is there a way to put an option on the "h" command to have it return only those commands that meet the criteria of the option?
For example, I am running SAS batch code, so I often type:
emacs mysasfile.sas
to create a batch program.
then I just type:
sas mysasfile
to execute the batch program.
then I type:
emacs mysasfile.log
to look at the log of the execution.
Is there a way to say:
h|*.log
so that the command list history contains only those commands that ended in .log??
Thanking you in advance.
Mike K