diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-02-19 16:05:56 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-02-19 16:05:56 -0300 |
commit | 835d41f2cd5eafbbd5ff92eae66b1a0d91c5547b (patch) | |
tree | cef7bb01004aed29728977cb928f0789491d54be /urlsave | |
parent | fd636e5779ff348a7b06cbdf5c36a3849f1e4d3b (diff) | |
download | scripts-835d41f2cd5eafbbd5ff92eae66b1a0d91c5547b.tar.gz scripts-835d41f2cd5eafbbd5ff92eae66b1a0d91c5547b.tar.bz2 |
Feats: enhance urlinfo and creates urlsave
Diffstat (limited to 'urlsave')
-rwxr-xr-x | urlsave | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#!/bin/bash +# +# Save URL info in a file as a simple bookmarking service. +# + +# Parameters +CONFIG="$HOME/.custom/urlsave" + +# Load config +if [ -e "$CONFIG" ]; then + source $CONFIG +fi + +# Check +if [ -z "$URLFILE" ] || [ ! -e "$URLFILE" ]; then + URLFILE="/dev/stdout" +fi + +# Dispatch +urlinfo $* >> $URLFILE |