On Fri, 25 May 2018 17:12:29 -0400 Steven Rostedt <rostedt@xxxxxxxxxxx> wrote: > #!/bin/sh Hmm, I think I need to make this #!/bin/bash > test_trace() { > file=$1 > x=$2 > > cat $file | while read line; do > if [ "$line" != "${line/\#/}" ]; then > continue > fi > echo "testing $line for >$x<" > if [ "$line" == "${line/>$x</}" ]; then The ${line/>$x</} is unique to bash I believe. -- Steve > fail "$line does not have >$x< in it" > fi > let x=$x+2 > done > } > -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html