Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
===Macro Macro is a utility for reading history files and making scripts from them. Macro will look for two commands in the history file (startmacro and stopmacro), find the latest usage of the two tokens, and return a script with those commands in it. - ===Uses of Macro Macro can be used to interactively create scripts. It may be easier to execute the commands that need to be done instead of writing them down in a script. - ===Calling Macro Macro is pretty weird with the way it is called. You supply the history file as well as the name of the output script (sans .sh) to macro. To access a history file, redirect history like so: "history > file". After the script is generated, the file can be closed. Why is it done like this? Preserving compatibility with /bin/sh is important to me, and the "history" command is the only way to flush everything. ~/.bash_history is outdated and will only get additions after the terminal session is closed or flushed. Eventually Macro will have an option to remove the file after using it. - ===License Macro is licensed under the GNU General Public License revision 2. -