MacOS' Terminal's marks are an incredible feature. They allow you to add a "marker" to a line, which can be jumped between. Documentation about these commands is available in Apple's own documentation, as well as previous questions here;
- Why is there a left bracket before my bash prompt?
- New Terminal behavior after upgrading to OS X 10.11
- What functionality do 'marks' offer in the El Capitan Terminal?
I often have a need to run a command repeatedly, which I tend to do via a shell script that puts a command in a while loop with a sleep timer, or an execution counter with a limit. Paging through executions is difficult unless I remember to also add some kind of marker like
echo "---------" in the command chain.
Is it possible to add marks via shell scripting? My searches so far only show the menu option and keyboard shortcut.