From 835d41f2cd5eafbbd5ff92eae66b1a0d91c5547b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 19 Feb 2021 16:05:56 -0300 Subject: Feats: enhance urlinfo and creates urlsave --- urlsave | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 urlsave (limited to 'urlsave') diff --git a/urlsave b/urlsave new file mode 100755 index 0000000..afef452 --- /dev/null +++ b/urlsave @@ -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 -- cgit v1.2.3