$ grep '^ *perl' .bash_history C:\> perl -lne"/^\s*perl/&&print" history.txt