simple awk question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



how can i print all BUT the last field. ie something like:
echo one.two.three.four | awk -F "." '{print <all from $1 to $(NF-1)>}'
=one.two.three
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux