help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Loops and scripting in eshell


From: Oliver Scholz
Subject: Re: Loops and scripting in eshell
Date: Sun, 19 Oct 2003 22:15:18 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt)

Oliver Scholz <address@hidden> writes:

> Kai Grossjohann <address@hidden> writes:
>
>> Oliver Scholz <address@hidden> writes:
>>
[...]
>>> Loops are the one feature that I am missing in eshell.
>>
>> for f in a b { echo $f; }               # invokes shell command echo
>> for f in a b ( find-file f )            # invokes Lisp command

[...]
> Thank you very much. What a relief!
[...]

I am not quite there yet. I'd sometimes need something like:

for f in `ls` { echo $f }

So what would be the equivalent to bash:

for f in `ls`; do echo $f; done

or

for f in $(ls); do echo $f; done

?

Or is this one of the things eshell can't do? I sometimes use
something like this to rename all files in a directory or all files
with a specific extension or things like that. How would I do this in
eshell from the command line?

    Oliver
-- 
28 Vendémiaire an 212 de la Révolution
Liberté, Egalité, Fraternité!


reply via email to

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