hs: a pedestrian history search engine

hs searches the command history for patterns

You are now following this Submission

HS searches the command history file for entries containing a specific pattern using the regular expression engine.
the results are displayed in the command window in the format:

#entry location: line

clicking the -location- will open the history file at this line;
clicking the -line- will copy/paste the line to the command prompt and may be return by an [ENTER] command.

see:

>> help hs

for more explanations for this snippet

Cite As

us (2026). hs: a pedestrian history search engine (https://au.mathworks.com/matlabcentral/fileexchange/20610-hs-a-pedestrian-history-search-engine), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Yuri Kotliarov has disclosed a strange behavior, which was corrected; thanks, Yuri!
version tag: 21-Apr-2009 21:38:10

1.0.0.0

changed line-click from rerun to copy/paste to the command prompt; version tag 29-Aug-2008 17:28:54