You could also do something like this (provided you have lynx installed)…
Lynx versions < 2.8.8
lynx -dump -listonly my.html
Lynx versions >= 2.8.8 (courtesy of @condit)
lynx -dump -hiddenlinks=listonly my.html
Related Contents:
- Don’t need the whole line, just the match from regular expression
- RegEx match open tags except XHTML self-contained tags
- How can I do a recursive find/replace of a string with awk or sed?
- Bash tool to get nth line from a file
- Find and kill a process in one line using bash and regex
- How do I match any character across multiple lines in a regular expression?
- How to remove double-quotes in jq output for parsing json files in bash?
- Can you provide some examples of why it is hard to parse XML and HTML with a regex? [closed]
- RE error: illegal byte sequence on Mac OS X
- How to merge every two lines into one from the command line?
- What to do Regular expression pattern doesn’t match anywhere in string?
- Regex select all text between tags
- What are the differences among grep, awk & sed? [duplicate]
- Regular expression to remove HTML tags from a string [duplicate]
- Why is sed not recognizing \t as a tab?
- How to extract text from a string using sed?
- Append file contents to the bottom of existing file in Bash [duplicate]
- Can you make just part of a regex case-insensitive?
- how to use sed, awk, or gawk to print only what is matched?
- find difference between two text files with one item per line [duplicate]
- How do HTML parses work if they’re not using regexp?
- How to add to the end of lines containing a pattern with sed or awk?
- Insert multiple lines into a file after specified pattern using shell script
- How to decode URL-encoded string in shell?
- Bash script to convert from HTML entities to characters
- bash/sed/awk/etc remove every other newline
- Using sed to remove both an opening and closing square bracket around a string
- How to parse and convert ini file into bash array variables?
- How can I easily convert HTML special entities from a standard input stream in Linux?
- bash, extract string before a colon
- Why doesn’t `\d` work in regular expressions in sed? [duplicate]
- sed plus sign doesn’t work
- Open an .html file with default browser using Bash on Mac
- Concatenate in bash the output of two commands without newline character
- Regular expression for extracting tag attributes
- How to UNCOMMENT a line that contains a specific string using Sed?
- Grep output with multiple Colors?
- Uppercasing First Letter of Words Using SED
- How to use sed to replace regex capture group?
- Removing non-alphanumeric characters with sed
- How to match a pattern given in a variable in awk?
- Sending HTML mail using a shell script
- Scripts for computing the average of a list of numbers in a data file
- How do I add a line of text to the middle of a file using bash?
- Splitting a file in linux based on content [duplicate]
- How to find/replace and increment a matched number with sed/awk?
- Grep Regex: List all lines except
- Parsing the first column of a csv file to a new file
- Linux bash script to extract IP address
- Extraction of data from a simple XML file