[guide] Fix image extraction when there are too many files in a directory.

This commit is contained in:
Yury Melnichek 2012-05-29 06:59:01 +02:00 committed by Alex Zolotarev
parent 157cbfe78c
commit d884b7280f

View file

@ -1,7 +1,7 @@
#!/bin/bash
set -e -u -x
grep --ignore-case --only-matching --no-filename '<img[^/]*src=\"[^">]*"' *.opt \
grep --ignore-case --only-matching --no-filename '<img[^/]*src=\"[^">]*"' -r --include=*.opt . \
| sed 's/<img.*src="//g' \
| sed 's/"$//g' \
| sort -u \