Hi,everyone:
I'm new to shell, and now get trouble with some script:
line=`/usr/xpg4/bin/awk '/^([^\|]*\|){2}'"$CR"'/ {print $0}' ${TIER4FILE}|grep -v
OSNAME=`sed -n ''$LINE'p' $DATALOC/os`
sort +1 /tmp/LhasaCRs2 > /tmp/LhasaCRs1
I cannot understand the "{2}" here. My mentor said it meant the second domain, but I tried and I don't think so.
In the second line, I cannot figure out the exact meaning of the script.
In the last line, I searched that "+" is the domain number, but I cannot run "sort" with "+" on my system like that.
Could anybody help? Thanks a lot.