HTMLCOPY(1p)

πŸ“¦
version 1.31 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble

User Contributed Perl Documentation ✨ (yes bestie, it's a Perl joint, we love her)


✨ NAME ✨

htmlcopy β€” copy a HTML file without breaking links. 🫢 no cap, that's the whole gig.


🌸 SYNOPSIS 🌸

htmlcopy [OPTION] {SOURCE | -} [DESTINATION]

πŸ’– DESCRIPTION πŸ’–

okay so htmlcopy copies a source HTML file into DESTINATION. and here's the part that eats: if that HTML file has links to images, other HTML files, javascripts and cascading style sheets, htmlcopy is out here changing the link paths inside the HTML file so that the link destinations stay correct. it's giving "moved apartments but kept all the group chats." iconic. πŸ‘‘

when DESTINATION is omitted, the modified HTML gets written to standard output. and also, it is assumed that the output location is the current working directory. so like, heads up on that. πŸ’€

now listen β€” SOURCE and DESTINATION should be cleaned-up paths. periodt. for example, a verbose path like /aa/bb/../cc may cause converting links wrongly. 😭 not the links being converted wrong. this is a limitation of the URI module's rel method, so it's not us being messy, it's just how it is. to clean up paths, Cwd::realpath is useful. bestie tip, fr fr. ✨


πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” prints a brief help message and exits. quick lil vibe check, then she's gone. πŸ‘‹
  • -m, --man β€” prints the manual page and exits. (you are literally here rn. main character behavior.) πŸ“–πŸ’…

🌈 AUTHOR 🌈

Tetsuro KURITA <tkurita@mac.com> 🫢


and that's the whole page, bestie!! this gem is running on perl v5.34.0 and the date on the tin is 2022-06-14. go forth and copy ur HTML files without breaking a single link. slay. πŸ’–βœ¨πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from