linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* simple awk question
@ 2003-10-20  8:17 urgrue
  2003-10-20 20:19 ` Chuck Campbell
  2003-10-20 21:09 ` Chuck Campbell
  0 siblings, 2 replies; 4+ messages in thread
From: urgrue @ 2003-10-20  8:17 UTC (permalink / raw)
  To: admin

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-21 14:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-20  8:17 simple awk question urgrue
2003-10-20 20:19 ` Chuck Campbell
2003-10-20 21:09 ` Chuck Campbell
2003-10-21 14:51   ` Chuck Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).