Skip to content

Commit

Permalink
Fix #6: pass \n to sed as ANSI-C quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
luk4hn committed Dec 19, 2015
1 parent 8212b33 commit b2058a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ _links_dump() {
--user-agent="$_USER_AGENT" \
$_WGET_OPTIONS \
-O- "$@" \
| sed -e "s#['\"]#\n#g" \
| sed -e "s#['\"]#\\"$'\n#g' \
| grep -E '^https?://' \
| sort -u
}
Expand Down

0 comments on commit b2058a6

Please sign in to comment.