shell中运行总是报找不到repeat命令的问题

一个小小脚本程序,只有一行,但报错
repeat 10 echo 'a'
运行总是报找不到repeat命令不知是什么原因
多谢.
---------------------------------------------------------------

repeat 是csh下的命令

#csh
%repeat 2 echo 'a'
a
a
%

---------------------------------------------------------------

up
---------------------------------------------------------------

用vi写到文件中去

#! /bin/csh
repeat 2 echo 'a'
---------------------------------------------------------------

同意楼上,这样就指定用/bin/csh来执行下面的内容。

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus