12 lines
250 B
Bash
Executable File
12 lines
250 B
Bash
Executable File
#!/bin/sh
|
|
|
|
find ~/brain -name "*.md" -print0 | while IFS= read -r -d '' file
|
|
do
|
|
echo "Posting $file"
|
|
|
|
curl -X POST -H "Content-Type: multipart/form-data" -F "files=@$file" http://localhost:8000/documents/?document_type=md
|
|
|
|
sleep 30
|
|
|
|
done
|