Skip to content

Commit

Permalink
[shell] for f in *
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhang-gh committed Aug 21, 2024
1 parent 1e142e6 commit 7ee845f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/software/shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,14 @@ hello $a
```shelldoc
for i in {1..10} ## press `Enter` here and continue typing
echo $i
## 更多处理
echo $(printf %02d $i) ## 01 02 03 ...
echo $(printf %02d $(($i * 2))) ## 02 04 06 ...
## 遍历文件
for f in *
for f in *.txt
```

```shelldoc
Expand Down

0 comments on commit 7ee845f

Please sign in to comment.