lynx -dump -listonly file.html to get just the local files: lynx -dump -listonly file.html | grep file://