how to avoid time command output

Hi,

I have 2 queries

1 .when I run some unix command, I am getting the output of "time" at std output (screen)

for eg

zegrep <pattern> *.v.gz

I almost found the reason but not sure, if the no of files matching *.v.gz is more then I am getting the time command output at the screen

whereas if i give

zegrep <pattern> design_name.v.gz, I am not getting the time output in my screen

so my question is how to avoid the time command output at my screen when the unix command is working on multiple files

  1. similalry when I execute a csh script at the end of the script execution, I am getting the time command output at my screen. how to avoid that too

thanks in advance

Regards,
Selva

I've not met zegrep before, but do you mean you are getting output that has each line preceeded by the file that line has been matched in? If so, use the -h flag.

Sorry if I have missed the point.

Robin

hi robin,

thanks for the input but I suppose you missed the point

i know -h will avoid printing the matching file name

my doubt is after executing is. i will make my question generic

In my shell commmand (csh) when I execute some time consuming command, after the execution of the command

i am getting the output of unix "time" command at the screeen

something like below

1764.561u 804.430s 287:14:27.59 0.2% 0+0k 144+0io 244pf+0w

so my query is how to avoid that ?

thanks,
selva

Do you have an alias set ? What happens when you issue:

alias

Hi Scrutinizer,

yes I have lot of alias, when I type alias I am getting the description of all the alias that I have set in .aliases file

will that matter to cause time output to come at the screen ?

I am using it past 6 months without any issue

Regards,
Selva..

Perhaps there is an alias for zegrep in there?
What happens when you do this:

\zegrep <pattern> *.v.gz

It could also be that your PATH variable has changed? What does

which zegrep

give?