vault backup: 2024-01-25 14:02:02

This commit is contained in:
2024-01-25 14:02:03 +00:00
parent c09a4d605d
commit 14b75ba16c
32 changed files with 19979 additions and 26 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
cat ~/.bash_history | while read line; do
if echo $line | grep -Eq "^(mkdir|cd)"; then
dir=$(echo $line | sed -r 's/(mkdir|cd) +//')
if [ -d "$dir" ]; then
echo "YES: $dir"
else
echo "NO: $dir"
fi
fi
done