From fa217c896eb8d78c8fb28fa5c0958a0fb70ace76 Mon Sep 17 00:00:00 2001 From: Mauricio Dinarte Date: Fri, 4 Aug 2023 11:00:18 -0600 Subject: [PATCH] Add script to conver MD files to TXT --- scripts/export_to_txt.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 scripts/export_to_txt.sh diff --git a/scripts/export_to_txt.sh b/scripts/export_to_txt.sh new file mode 100755 index 0000000..1986c88 --- /dev/null +++ b/scripts/export_to_txt.sh @@ -0,0 +1,5 @@ +#!/bin/bash +cd export +ls * | grep -v Book.txt | xargs rm +cd .. +for old in *.md; do cp $old export/`basename $old .md`.txt; done