Rule based scrips

From Rsewiki