1

dynamic string searching for grep

view story
linux-howto

http://www.unix.com – hi my code is something like Code:   count=0     echo "oracle TABLESPACE NAME  nd TARGET"       while [ loop condition ]       do               count=`expr $count + 1`             (1)    tts_space_name$count=`echo $tts | cut -d "," -f$count`       (2) target$count=grep $(tts_space_name$count) cfg.txt | cut -d'=' -f2       done in line (1) value is getting assigned to tts_space_name$count , but den it i (HowTos)