[CentOS] repeat command
Markus Falb
wnefal at gmail.com
Thu May 2 23:30:13 UTC 2013
On 02.Mai.2013, at 23:37, Alfred von Campe wrote:
> On May 2, 2013, at 17:34, Michael Mol wrote:
>
>> On 05/02/2013 05:05 PM, Matt wrote:
>>> There is a unix command called repeat.
>>>
>>> repeat 10 some_command
>>>
>>> Basically repeats some command ten times. Is it available on Centos 6
>>> and what package provides it?
>>
>> # yum whatprovides "*bin/repeat"
>> [snip]
>> No Matches found
>
> I was going to post the same information about finding out with "yum whatprovides".
> FWIW, repeat is a built-in command in tcsh. Maybe that's where you've seen it before.
You could use that with CentOS
$ csh -c "repeat 10 ..."
$ tcsh -c "repeat 10 …"
$ rpm -qf /bin/tcsh
tcsh-6.17-24.el6.x86_64
--
Markus
More information about the CentOS
mailing list