diff options
| author | yuzu-eva <cafebabe@disroot.org> | 2025-06-03 22:39:15 +0200 |
|---|---|---|
| committer | yuzu-eva <cafebabe@disroot.org> | 2025-06-03 22:39:15 +0200 |
| commit | 2b149cf421ab85b754515ce16ad5290758056e24 (patch) | |
| tree | a1ef124555a2bd4dc628187d532d47ddf363485c /date-convert | |
| parent | 9452a216d847a7522700cb29654c71c1116573b3 (diff) | |
moved some function from .bashrc into scripts
Diffstat (limited to 'date-convert')
| -rwxr-xr-x | date-convert | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/date-convert b/date-convert new file mode 100755 index 0000000..398a857 --- /dev/null +++ b/date-convert @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +for i in "$@"; do + perl-rename 's/([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])/$1-$2-$3/' "${i}" +done |
