ambevar-dotfiles/.scripts/newsbeuter-bookmarks

12 lines
229 B
Bash
Executable File

#!/bin/sh
[ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config"
url="$1"
title="$2"
description="$3"
SEP=" "
OUTPUT="$XDG_CONFIG_HOME/newsbeuter/news_starred"
echo -e "${url}$SEP${title}$SEP${description}" >> "$OUTPUT"