📜  在历史命令窗口中搜索 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:22.098000             🧑  作者: Mango

代码示例1
Yes you can using doskey instead of history in Windows! You only have to first 
create a storage file as:
doskey /h > c:\cmd_history.txt
Then just call your command history and filter your search as follows:
doskey /history | findstr "substring"