first commit

This commit is contained in:
Bradford White
2026-03-26 10:28:14 -04:00
commit 00bc136f92
5 changed files with 102 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
username=$(whoami)
dob=$(grep $username /etc/birthdays | cut -f 3 -d ':')
today=$(date +%Y%m%d)
age=$(echo "$today - $dob" | bc -l | cut -f 1 -d '.')
printf "%s%b" "$age" "\n"