Create a Chrome bookmark html file to import list of URLs

Jan van den Berg
Aug 15 · 1 min read
# Run this script on a file named urls.txt with all your URLs and pipe the output to an HTML file.
# Example: ./ > bookmarks.html

echo "<!DOCTYPE NETSCAPE-Bookmark-file-1>"
echo '<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">'
echo '<TITLE>Bookmarks</TITLE>'
echo '<H1>Bookmarks</H1>'
echo '<DL><p>'
cat urls.txt |
while read L; do
echo -n ' <DT><A HREF="';
echo ''"$L"'">'"$L"'</A>';
echo "</DL><p>"

Jan van den Berg

Written by

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade