A Go version of the https://lcthw.dev/learn-code-the-hard-way/curseyou-python-rogue that makes a tiny Rogue in Go.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
curse-you-go-rogue/crank_diff.sh

11 lines
227 B

#!/usr/bin/env bash
for p in `diff $1 $2 | grep "^diff" | cut -d " " -f 2-3 | sed "s/ /#/g"`
do
echo $(echo $p | sed "s/#/ /g")
read -r from to <<< "$(echo $p | sed 's/#/ /g')"
diff -u2 $from $to > $to.diff
done