Trying to understand a complex bit of code

view story

http://www.unix.com – Hi, To re-introduce myself, I'm a router guy trying to learn some scripting from the examples in my work place... In a ksh script, one of the script guys wrote the following and I am trying to understand it. I'm hoping someone can explain it to me. The script flow enters a case structure. Inside the case, one of the options is as follows: Code:       @RESPONSE*) ADDRESPONSE=$(print "$cmd" | sed -e  's/^[  ]*@RESPONSE //')        [[ "$ADDRESPONSE" ==  "^M" ]] && \        (HowTos)