Commit d0026761 authored by rinpatch's avatar rinpatch
Browse files

cringe

parent dfae0050
Pipeline #9594 passed with stages
in 4 minutes and 57 seconds
#!/bin/sh
lstr=`ls -A1 *.md`
readarray -t lsarr <<<"$lstr"
for i in "${lsarr[@]}"
do
:
echo $i
title=`echo $i | sed 's/-/\ /g' | sed 's/\.md//g'`
echo $title
echo -e "# $title\n$(cat $i)" > $i
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment