read about this site and my work or check what I'm doing now

#technology #programming #writing #language #diaries ⚑ Bali, Southeast Asia

moving Grammarly documents to markdown folder

#!/bin/bash
cwd=$(pwd)
# find all .docx files
find $cwd -name "*.docx" -type f -print0 | while IFS= read -r -d $'\0' line; do
# remove spaces in filename
ns_filename=$(echo $line | sed 's/ /_/g')
# get filename from input
the_filename=$(basename -s .docx $ns_filename)
# convert word to markdown
# echo "pandoc -f docx -t markdown \"$line\" -o $the_filename.md"
pandoc -f docx -t markdown "$line" -o $the_filename.md
done