#!/bin/bash TIPS=$(find /var/www/html/api -maxdepth 2 -iname "*tips*" 2>/dev/null | head -5) if [ -z "$TIPS" ]; then echo "cyber_tips:NONE_CATALOGED" echo "suggestion:create /api/cyber-tips-catalog.json" else echo "$TIPS" | while read f; do echo "tips:$(basename $f)"; done fi