📜  正则表达式第一行 - Shell-Bash 代码示例

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

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