Skip to content

Instantly share code, notes, and snippets.

View parstra's full-sized avatar

Stratos Paraskevaidis parstra

View GitHub Profile
#!/bin/bash
MD5_OLD=_$(md5sum 'path_to_temp_output' | cut -d ' ' -f 1)
curl -X POST -d @/path/to/config/file 'http://www.stratologia.gr/proepiskophsh_stoixoivn' | grep -A 3 enhmKatataxisDiv > path_to_temp_output
MD5_NEW=_$(md5sum 'path_to_temp_output' | cut -d ' ' -f 1)
if [ "$MD5_OLD" != "$MD5_NEW" ]
then