On Thu, 19 Aug 2021 00:13:30 -0400 Steven Rostedt <rostedt@xxxxxxxxxxx> wrote: > +clear_dynamic_events() { # reset all current dynamic events > + again=1 > + stop=1 > + # loop mulitple times as some events require other to be removed first > + while [ $again -eq 1 ]; do > + stop=$((stop+1)) > + # Prevent infinite loops > + if [ $stop -gt 10 ]; then > + break; > + fi > + again=2 > + grep -v '^#' dynamic_events| > + while read line; do > + del=`sed -e 's/^.\([^ ]*\).*/-\1/'` That should be "del=`echo $line | sed -e 's/^.\([^ ]*\).*/-\1/'` Will fix in v8. -- Steve > + if ! echo "$del" >> dynamic_events; then > + again=1 > + fi > + done > + done > +}