aboutsummaryrefslogtreecommitdiff
path: root/urlsave
blob: afef452d0c2f2c6267b9222e16ff5d82381c70dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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