Skip to content

Commit 5d25be6

Browse files
committed
Update STL01.md
1 parent 892142f commit 5d25be6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/STL01.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ re.search()如果从第二个参数找到符合要求的子字符串,就返回
2929

3030

3131
如果你熟悉Linux或者Perl, 你应该已经熟悉正则表达式。当我们打开Linux shell的时候,可以用正则表达式去查找或着删除我们想要的文件,比如说:
32-
32+
```bash
3333
$rm book[0-9][0-9].txt
34-
34+
```
3535
这就是要删除类似于book02.txt的文件。book[0-9][0-9].txt所包含的信息是,以book开头,后面跟两个数字字符,之后跟有".txt"的文件名。如果不符合条件的文件名,比如说:
3636

3737
bo12.txt

0 commit comments

Comments
 (0)