aboutsummaryrefslogtreecommitdiff
path: root/urlsave
blob: e58245cc873cce13b78c34fc88f7d6b3842ea225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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
echo ""    >> $URLFILE
urlinfo $* >> $URLFILE