Hi All,
I have a question again, In the code below in want to display data that is unique, there are many directories in which i am going and parsing a .su file and getting a string out, if i do ls $i | grep .su | $AWK -F"_" '{print $1} | uniq inside the for loop it will not work.
What do i do?
Thanks
Adi
#!/bin/sh
ECHO=/bin/echo
FIND=/bin/find
AWK=/bin/awk
ROOT_PATH=/net/icebox/vol/local_images/spins
STREAM_PATH=$ROOT_PATH/7.1
SHARE_ENTITY_PATH=`$FIND $STREAM_PATH . -depth -name ShareableEntities`
#$ECHO $SHARE_ENTITY_PATH
for i in $SHARE_ENTITY_PATH
do
ls $i | grep .su | $AWK -F"_" '{print $1}'
done