I am trying to include the belwo script to find out tracks per cylinder and i am using it in bigfix action script and making a task which will run on the soalris machine :
for DISK in /dev/dsk/ctds; do value=prtvtoc "$DISK" | sed -n -e '/Dimensions/,/Flags/{/Dimensions/d; /Flags/d; p; }' | sed -n -e '/tracks\/cylinder/p'; if [ -n “$value” ]; then echo “TracksPerCylinder=$value”; else echo “$value” >/dev/null; fi; done 2>/dev/null | sed -e ‘s/*//g’ -e ‘s/tracks/cylinder//g’ -e ‘s/ //g’ | sort -u
the moment bigfix action acript find pattern “//” which i have used in sed command it treates it as a comment .
Can someone let me know how i can modify the action script so that my shell scrip will remain as it is and i get desired result. please advise.
For example in the action script one has to add additional opening curly brace if the shell script contains opening brace like : sed -n -e ‘/Dimensions/,/Flags/
{{
/Dimensions/d; /Flags/d; p; }’