lu
is a command line tool for listing URL shortcuts. It can parse the following formats:
- webloc (OSX)
- url (Linux)
- desktop (Windows)
Running lu
for a file will extract the URL:
user$ lu example.webloc
https://example.com/
Running lu
for a folder will process all contents of the folder:
user$ lu shortcuts/
https://foo.com/
https://bar.com/
Passing the -r
switch will cause lu
to recurse into sub-folders.