Daily Archives: August 22, 2007

shell split

Dannyman sez: # octects oct1=`echo $subnet | awk -F . ‘{print $1}’` oct2=`echo $subnet | awk -F . ‘{print $2}’` oct3=`echo $subnet | awk -F . ‘{print $3}’` oct4=`echo $subnet | awk -F . ‘{print $4}’` Later, when reviewing my … Continue reading

Posted in tech | 2 Comments