dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit ba002e89fb837245aa3636d3ff50889584b1a19f
parent 64ca6b9fde65c27c67daa3f2c61f116398f5fab6
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 20 Mar 2020 19:56:16 +0100

Change cclip remote path, add script to export radio stations as html

Diffstat:
M.local/bin/cclip | 2+-
A.local/bin/radio-stations.sh | 21+++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/.local/bin/cclip b/.local/bin/cclip @@ -1,5 +1,5 @@ #!/bin/sh -f="cclip" +f="cclip.txt" toclip() { upload "$f" >/dev/null diff --git a/.local/bin/radio-stations.sh b/.local/bin/radio-stations.sh @@ -0,0 +1,21 @@ +#!/bin/sh +r="$HOME/.local/share/radio-stations.txt" +o="$HOME/.local/share/radio-stations.html" + +cat > "$o" <<__EOF__ +<!DOCTYPE html> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +</head> +<body> +__EOF__ + +awk -F'\t' '{print "<a href=\""$2"\">"$1"</a><br>"}' "$r" | sed 's,radio://,http://,' >> "$o" + +cat >> "$o" <<__EOF__ +</body> +</html> +__EOF__ + +upload "$o"