Quote:
Originally Posted by
Perderabo
from tcsh, try:
/bin/echo /TEST/bin/*
I thinking that your tcsh may have a bug where it manages to kill itself if it builds too large of a command line.
When I execute this
/bin/echo /TEST/bin/*
I still get .... Killed.
if I exit tcsh and back at the $ prompt in K shell I type:
/bin/echo /TEST/bin/* | wc
these are the counts I get :
1 786 22273
Maybe this is it, ~22K is this too big for tcsh command line?
Can you also advice of a way to only return and process files in a particular directory i.e. /TEST/bin, with a command in this format?
find /TEST/bin -name "*" -type f| xargs grep -l "search string"
I am trying to use find to avoid the Arg list too long which would get generated by ls
I tried putting -prune in the command with no success, the complexity might resides in the fact that I want to execute the find command without regard of where I am (my pwd value) at the time of execution.
Let me know if you have suggestions.
Thanks.