Created
September 30, 2023 16:22
-
-
Save maximgrynykha/a53e244c266a3ab3812afeb7d9937e1c to your computer and use it in GitHub Desktop.
Find all tmp.txt file(s) with numeric name / Extract file name from path(s) / Count number of file(s)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find ~ -name "tmp*.txt" | rev | cut -d "/" -f 1 | rev | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment