[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] quoting in an alias
From: |
Andy Chu |
Subject: |
Re: [Help-bash] quoting in an alias |
Date: |
Thu, 24 Jan 2019 16:53:54 -0800 |
You can always use a shell function instead of an alias. They're more
powerful, and don't have any of the quoting problems.
The bash manual even says this somewhere. Prefer functions! Example:
ll() {
ls -l "$@"
}
Andy
On Thu, Jan 24, 2019 at 4:51 PM Mike McClain <address@hidden> 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.
> TIA
> Mike
> --
> Seven deadly sins:
> Anger, gluttony, envy, sloth, avarice, lust and pride.
> I practice most of these so guess I'll die one day.
>
>