openring/generate_output.sh

9 lines
320 B
Bash
Executable File

#!/bin/bash
# Select 3 random feeds from the list and generate an openring structure from them
./openring $(shuf -n 3 feeds.txt | xargs printf -- '-s %s ') < in.html > out.html
sleep 3
echo "Copying the generated html file to my blog directory..."
cp out.html ../siddhartha-golu-website/layouts/partials/openring.html