Unusual piece of bash script code
I am no bash scripting enthusiast and try to get by with the bare minimum
necessary to perform some minor useful functions. I am fairly familiar with
piping 'grep', 'awk (or gawk)' and other minor tools to achieve the result
I want. However, I am somewhat befuddled by the following:
WANADDR=`/sbin/ifconfig $WANDEV | grep 'inet addr:' | awk '{print $2}' | cut -c6-20` set -- $WANADDR A="$1" B="$2" C="$3" D="$4"
The first part of the code included in the backtiks `` is understandable but the
final part, the set command, makes no sense to me. It also doesn't work.
Can anyone explain what is going on here or what someone has attempted to do?
|