Passing History to a variable
Posted on 2002-07-18
If I were to type history -n at the command prompt I would get a list of recent commands that have been typed.
I need to trap the first command in the list and pass it to a variable where I can use it as I please.
How do I do this?
Thanks in advance!