Brian
Glenn Remot wrote:
Hi!
i have a one-liner below, but i can't seem to hav my desired output when it comes to the nmblookup part. The result of the grep command is an ip address to be passed to the nmblookup command.
sed -n 's/128/#/p' /root/x | awk -F'#' '{ print $2 }' | awk '{ print $1 }' | sed -n 's/./128./p' | grep -m 1 128.1 | nmblookup -A
TIA
-- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
