help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] quoting in an alias


From: Greg Wooledge
Subject: Re: [Help-bash] quoting in an alias
Date: Fri, 25 Jan 2019 08:31:08 -0500
User-agent: NeoMutt/20170113 (1.7.2)

On Thu, Jan 24, 2019 at 06:48:31PM -0800, Mike McClain wrote:
> This works as I wish on the CL:
>     head -n4 docs/finance/quotes/y_quotes.{csv,bak} |
>         awk -F, '{print $1, $2, $6, $7;}'
> When I try to put it in an alias I can't get it right and have tried
> so many combinations of \s and $() that I'm totally befuddled.

Use a function instead.

frobozz() {
     head -n4 docs/finance/quotes/y_quotes.{csv,bak} |
         awk -F, '{print $1, $2, $6, $7;}'
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]