📜  正则表达式起始词 - Shell-Bash 代码示例

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

代码示例1
Just use "^" to specify matching a pattern at the beginning of each line.
Example with grep:
grep "^pattern" file.txt