Mailinglist Archive: opensuse (3566 mails)
| < Previous | Next > |
RE: [opensuse] bashrc
- From: Morten Bjørnsvik <morten.bjornsvik@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Apr 2007 11:20:01 +0200
- Message-id: <CDA20C9A626F6F4399ECAB205CADD17906E461@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
|From: Vince Oliver [mailto:vince@xxxxxxxxxxxxxxx]
|I would like to set some aliases in .bashrc that shall do some
|usefull things like:
|
|alias al="echo $PATH | awk 'BEGIN{FS=":"} {for(i=1;i<=NF;i++)
|print $i}'"
|
|
|This alias in not executed. How to define such aliases?
|
You need execution quotes, and it is a bad idea to use
the same quotes inside as you use to terminate entire string
alias al=`echo $PATH | awk 'BEGIN{FS=":"} {for(i=1;i<=NF;i++) print $i}'`
--
MortenB
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
|I would like to set some aliases in .bashrc that shall do some
|usefull things like:
|
|alias al="echo $PATH | awk 'BEGIN{FS=":"} {for(i=1;i<=NF;i++)
|print $i}'"
|
|
|This alias in not executed. How to define such aliases?
|
You need execution quotes, and it is a bad idea to use
the same quotes inside as you use to terminate entire string
alias al=`echo $PATH | awk 'BEGIN{FS=":"} {for(i=1;i<=NF;i++) print $i}'`
--
MortenB
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |