Skip to content
Snippets Groups Projects
Commit d0026761 authored by rinpatch's avatar rinpatch
Browse files

cringe

parent dfae0050
Branches
No related tags found
No related merge requests found
File deleted
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment