3

command in variable

view full story
linux-howto

http://www.linuxquestions.org – I am making a pipeline of several commands. This is a part of my shell script. ----------------------------------- array=( "mkdir src" "ls -l | grep tk_ > src/list" ) len=${#array[*]} i=0; while [ $i -lt $len ]; do echo ${array[$i]} if !(${array[$i]}); then exit 1; fi; let i++ done --------------------------------------- "mkdir src" is working well but "ls -l | grep tk_ > src/list" does not work. These are error messages. ------------- (HowTos)