#!/bin/sh pre=$(wc -l --total=only $XDG_DATA_HOME/sfeed/feeds/*) sfeed_update $XDG_CONFIG_HOME/sfeed/sfeedrc >/dev/null 2>1 post=$(wc -l --total=only $XDG_DATA_HOME/sfeed/feeds/*) if [ $post -gt $pre ]; then exec herbe " $((post - pre)) new articles" & fi