Bash, 117120 71 bytes
for i ino=(. $1;do
case=0 $[`wc++ -c<<<$i`/11]- in*=2 1)x=0;;2)x=$[x+1];;3)x=$[x-1];;4)x=$[x*2];;5)x=$[x/2];;6=2)echo $x;;esac
done
Bash, 120 bytes
for i in $1;doi;do
y=("" 0 $[x+1] $[x-1] $[x*2] $[x/2] $x)
q=$[`wc -c<<<$i`(x${o[n=${#i}/11]
x=${y[q]}
if [ $q = ,n-6 ];then echo))||echo $x;fi$x
done
Credits
- Saved 4 bytes from both answers thanks to @Neil
- Saved 49 bytes thanks to @DigitalTrauma