Re: TCSH weirdness with sed
From: Carlos J. G. Duarte (cjgd_at_clix.pt)
Date: 01/08/04
- Next message: Icarus Sparry: "Re: Expect question"
- Previous message: Stephane CHAZELAS: "Re: How to work with tabs in a bash script"
- In reply to: Kevin Furrow: "TCSH weirdness with sed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 08 Jan 2004 16:51:37 +0000
Kevin Furrow wrote:
[...]
> The idea is that it will echo to stdout whatever arguments have been
> provided, but if there have been any quoted arguments, it will treat them
> separately. So, if I do this:
> mytest "dx=1 dy=8 dz=10"
>
> it works. i.e., the output is:
> dx=1
> dy=8
> dz=10
>
Hi there.
Do that stuff in tcsh exclusively, it's faster than to calling external
programs and you don't have to worry with quotations (well, sort of).
Here's an example of what you want:
#! /bin/csh -f
while ( $# > 0 )
foreach f ( $1 )
echo $f
end
shift
end
-- carlos ** http://cgd.sdf-eu.org
- Next message: Icarus Sparry: "Re: Expect question"
- Previous message: Stephane CHAZELAS: "Re: How to work with tabs in a bash script"
- In reply to: Kevin Furrow: "TCSH weirdness with sed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]