{ echo; echo 1; echo -e 'u3l3ululldll3d11rurd12lulld13rdrrlu7l3ulull3duull3d11rurrld7l3ullul3duull3d11rdru7l3ull3urdduull5duull3d13r8l3ullul3duull3d12rlur' | tr 'ldur' 'hjkl' | sed 's/\([0-9]*.\)/\1\n/g;s/\([0-9]\+\)/\1 /g' | awk '/^[0-9]+ /{for (i=$1;i > 0;i--){printf $2}};/^[hjkl]$/{printf $1}'; echo; } | sed -nf sokoban.sed 

{
    echo;
    echo 1;
    echo 'u3l3ululldll3d11rurd12lulld13rdrrlu7l3ulull3duull3d11rurrld7l3ullul3duull3d11rdru7l3ull3urdduull5duull3d13r8l3ullul3duull3d12rlur' \
    | tr 'ldur' 'hjkl' \
    | sed 's/\([0-9]*.\)/\1\n/g;s/\([0-9]\+\)/\1 /g' \
    | awk '/^[0-9]+ /{for (i=$1;i > 0;i--){printf $2}};/^[hjkl]$/{printf $1}'; echo;
}; exit 0
} | sed -nf sokoban.sed

Format and prepare to output...
Format and prepare to output...
