shorlfilter1
Text filter that turns long urls into shorls (short urls)
Usage
shorlfilter [options]
[file ...]
Overview
Shorlfilter takes piped input or a filename from the command line and returns the same file with any long URLs turned into shorls.
See http://shorl.com for more information on shorls.
If shorlfilter is unable to get a replacement short URL from shorl.com, the long URL will be left unchanged in the output of the filter.
Examples
Convert all URLs longer than 60 characters to shorls in file_with_long_urls, save results in file_with_short_urls:
cat file_with_long_urls ⎪ shorlfilter -n 60 > file_with_short_urls
Add the following to your .muttrc to have all outgoing messages in the mutt mail user agent be shorlified:
macro compose y <filter-entry>'shorlfilter'\ry<send-message>'
Add the following to your .vimrc to have map F5 to filter the currently open document through shorlfilter:
noremap <F5> :%!shorlfilter<CR>
History
- Debian 6.0 (Squeeze) to Debian 4.0 (Etch): the text shown here
- Debian 3.1 (Sarge)