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
# credit: https://stackoverflow.com/a/44228436/4031135 | |
from pathlib import Path | |
p = Path('.') | |
# all subdirectories in the current directory, not recursive | |
list_subdirs = [f.name for f in p.iterdir() if f.is_dir()] | |
list_subdirs.sort() | |
for subdir in list_subdirs: |
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
# credit: https://stackoverflow.com/a/44228436/4031135 | |
from pathlib import Path | |
p = Path('.') | |
# all subdirectories in the current directory, not recursive | |
list_subdirs = [f.name for f in p.iterdir() if f.is_dir()] | |
list_subdirs = sorted(list_subdirs, reverse=True) | |
for subdir in list_subdirs: |
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
DateTime=`date "+%Y-%m-%d %H:%M"` | |
echo $DateTime |
OlderNewer