Re: creating file name from command line argument.
- From: Barry Margolin <barmar@xxxxxxxxxxxx>
- Date: Tue, 23 May 2006 17:12:27 -0400
In article <1148399536.398747.267470@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"papu" <prachar@xxxxxxxxx> wrote:
Hello,
I am using sql as alias to run db2 command in ksh shell.
alias sqllog="apply 'db2 -tvf %1 > %1.log'"
This command adds .log to foo1.sql.
Please give me a solution to replace .sql with .log
Aliases don't do parameter substitution, use a function.
--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.
- References:
- Prev by Date: Re: creating file name from command line argument.
- Next by Date: Re: grep hang - grep xxxx *
- Previous by thread: Re: creating file name from command line argument.
- Next by thread: grep hang - grep xxxx *
- Index(es):
Relevant Pages
|
|