Switch experiment README to .md
authorSiraaj Khandkar <siraaj@khandkar.net>
Sat, 22 Apr 2023 23:21:24 +0000 (19:21 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Sat, 22 Apr 2023 23:21:24 +0000 (19:21 -0400)
and a title marked with a line of =s instead of leading the #.

home/bin/x

index 1b04be6..1687114 100755 (executable)
@@ -2,12 +2,15 @@
 
 set -e;
 
+README='README.md'
+
 name=$(echo "$@" | sed 's/\s\+/-/g');
 timestamp=$(date +'%F--%H-%M-%S');
 directory="$HOME/x/$timestamp--$name";
 mkdir -p "$directory";
 cd "$directory";
-printf '# %s\n' "$name" > README;
+printf '%s\n' "$name" > "$README";
+seq 80 | xargs | sed -E 's/\s*[0-9]+\s*/=/g' >> "$README"
 git init >&2
 git commit --allow-empty -m 'Root commit' >&2
 git add . >&2
This page took 0.018212 seconds and 4 git commands to generate.