Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P9491
check.sh
Active
Public
Actions
Authored by
brennen
on Oct 28 2019, 8:39 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F30909011: raw.txt
Oct 28 2019, 8:39 PM
2019-10-28 20:39:48 (UTC+0)
Subscribers
None
Tokens
"The World Burns" token, awarded by zeljkofilipin.
14
:38:31 brennen@inertia:~/code/filipin
(
master m0/u1
)
✶ cat check.sh
#!/bin/sh
find assets
|
while
read
-r image
;
do
image_basename
=
$(
basename
"
$image
"
)
if
grep -q
"
$image_basename
"
-ri _posts
;
then
echo
"Used:
$image
"
else
echo
"Unused:
$image
"
fi
done
14
:38:48 brennen@inertia:~/code/filipin
(
master m0/u1
)
✶ sh ./check.sh
|
grep Used
|
wc -l
196
14
:38:54 brennen@inertia:~/code/filipin
(
master m0/u1
)
✶ sh ./check.sh
|
grep Unused
|
wc -l
36
Event Timeline
brennen
created this paste.
Oct 28 2019, 8:39 PM
2019-10-28 20:39:48 (UTC+0)
zeljkofilipin
awarded a token.
Oct 28 2019, 8:48 PM
2019-10-28 20:48:06 (UTC+0)
Log In to Comment