To save the output in a file, you can use the > sign at the end: lynx -listonly \ If every line contains a URL, you can then sort them and filter for unique URLs like this: lynx -listonly \ Not having line numbers there can make it easier to process the links with other scripts.įor example, you can use the pipe character ( |) to send the output of Lynx into the grep command in order to print out only the lines that contain URLs: lynx -listonly \ Here's what the output looks like without line numbers: ( Note: the backslashes there allow the command to be split up onto multiple lines.) Here's an example command that combines all of those flags: lynx -listonly \
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |