Skip to content

Instantly share code, notes, and snippets.

@fatherjack
Last active August 24, 2018 08:02
Show Gist options
  • Save fatherjack/8491fb3c3f0280c2127c05b02a3a4a79 to your computer and use it in GitHub Desktop.
Save fatherjack/8491fb3c3f0280c2127c05b02a3a4a79 to your computer and use it in GitHub Desktop.
# i - copy the complete URL from your browser
# ii - run this line of powershell
# iii - go to document and paste
# iv - content pasted is the title of the web page
# useful for when you want to build aset of reference and need page title and url in the document
(((Get-Clipboard).Split('/')[-1]).Split('?')[0]).Replace("-", " ") | Set-Clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment