That depends on what "this" Frank is referring to.
If "this" refers to the looping structure, then Jeremiah already gave
an example (and, yes, there are many more via the googles). Here is
the example again but a bit more explicit, using echo instead of
mkdir:
foreach i (1 2 3 4 5 6 7 8 9 10)
echo $i
end
On the other hand, if "this" refers to the brace range expansion, then
csh/tcsh does not appear to have such a feature (based on a few
minutes with the googles). The closest you can get is using a
subcommand, e.g. seq or jot. For example:
foreach i (`seq 1 10`)
echo $i
end
Of course, the snappy answer to "how do you do looping in csh?" :
bash -c 'for i in {1..10}; do echo $i ; done'
Regards,
- Robert
On Sun, Oct 22, 2017 at 2:20 AM, Blues Renegade <[email protected]> wrote:
> A simple Google search of, "looping in csh" will answer your question.
>
>
>
> On Oct 21, 2017 6:58 PM, "frank" <[email protected]> wrote:
>>
>> Does Csh have a structure like this one in Bash?
>>
>> for i in {1..10}
>> do
>> echo $i
>> done
>>
>> --
>> --
>> You received this message because you are subscribed to the Linux Users
>> Group.
>> To post a message, send email to [email protected]
>> To unsubscribe, send email to [email protected]
>> For more options, visit our group at
>> http://groups.google.com/group/linuxusersgroup
>> References can be found at: http://goo.gl/anqri
>> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Linux Users Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> --
> You received this message because you are subscribed to the Linux Users
> Group.
> To post a message, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit our group at
> http://groups.google.com/group/linuxusersgroup
> References can be found at: http://goo.gl/anqri
> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
> ---
> You received this message because you are subscribed to the Google Groups
> "Linux Users Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
---
You received this message because you are subscribed to the Google Groups
"Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.