[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Sed/awk question (plus ca. 2006 Chuck Norris jokes)
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Sed/awk question (plus ca. 2006 Chuck Norris jokes) |
Date: |
Wed, 16 Jul 2014 08:19:06 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Tue, Jul 15, 2014 at 06:24:38PM -0400, Bill Dorrian wrote:
> *Actual output: *
>
> swims through land
>
> *Desired output:*
>
> @chucknorris (swims,,) (through,,) (land,,) (man,,)
You know, if you're generating NIS netgroups from a static list of
hostnames, you can just SAY that. It's much less confusing that way.
read -ra hostnames < <(ssh remotehost cat whatever)
printf '@chucknorris ';
printf '(%s,,) ' "address@hidden"
echo