Skip to content

Commit caf6381

Browse files
committed
feat: add Bash script
1 parent 71077ec commit caf6381

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

playground/32-space.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
# Get current date in YYYY-MM-DD format
4+
today=$(date +"%Y-%m-%d")
5+
6+
# Find files modified today and calculate total size
7+
find . -type f -newermt "$today" -exec du -ch {} + | grep total$

playground/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ For Stable Diffusion, you need to add your `STABILITY_AI_KEY`. You can find it i
107107

108108
- [renaming files](22-rename.py) in a folder.
109109
- [reorganizing files](31-reorganizing-files.ipynb).
110+
- [calculating and displaying the total size of files](32-space.sh) modified today using a Bash script.
110111

111112
## Using ChatGPT for Programming Development
112113

0 commit comments

Comments
 (0)