14 lines
293 B
Bash
14 lines
293 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
target="$1"
|
||
|
|
||
|
while read -r line; do
|
||
|
echo "$line" | grep -q '^.so ' && \
|
||
|
file="$(echo "$line" | grep '^.so ' | cut -d' ' -f2 )" && \
|
||
|
[ -e "$file" ] && \
|
||
|
echo '```graph' && \
|
||
|
cat "$file" | graph-easy --boxart && \
|
||
|
echo '```' || \
|
||
|
echo "$line"
|
||
|
done < "$target"
|