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 facac56c325efe50ce952c04a9cdcae1b1c8bd8a
parent a1032ad22089d62ca55631e0b0e16360ede01cd3
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 25 May 2020 21:35:40 +0200

Remove fnfix and use detox(1) instead

Diffstat:
D.local/bin/fnfix | 26--------------------------
1 file changed, 0 insertions(+), 26 deletions(-)

diff --git a/.local/bin/fnfix b/.local/bin/fnfix @@ -1,26 +0,0 @@ -#!/bin/sh -# rename all files passed as arguments containing danish characters. - -replacerules() { - sed 's/æ/ae/g - s/ø/oe/g - s/Ã¥/aa/g - s/Æ/AE/g - s/Ø/OE/g - s/Ã…/AA/g - s/æ/ae/g - s/ë/ae/g - s/ø/oe/g - s/õ/oe/g - s/Ø/OE/g - s/ù/OE/g - s/Å/AA/g - s/ü/ue/g' -} - -for f in "$@"; do - r="$(printf '%s' "$f" | replacerules)" - if [ ! "$f" = "$r" ]; then - mv -i "$f" "$r" - fi -done