add scripts/add-images.sh

This commit is contained in:
Milan Hauth 2021-11-15 13:08:18 +01:00
parent f8d7a1bf99
commit 5d3c57eccf
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
grep images/ src/pages/* | \
sed -E 's/^.*src="([^"]+)".*$/\1/' | \
sort | \
uniq | \
while read f
do
echo git add src/$f
git add src/$f
done