I'm unable to execute the below command completely ; it's not allowing me to type the complete command. It is allowing till "xargs" and i cannot even press enter after that.
I'm using Solaris. Let me know if anything needs to be added so as to execute the complete command. Appreciate your help in this regard.
Getting the error "Ambiguous output redirect". The command which i reported initially is working fine on linux boxes. Not sure why it's not working on Solaris boxes.
actually your first command almostly is like ok but due to the length of the your command , it's not allowed by csh for cmd line length..(256 chrs)
you can maybe try in tcsh if support "iname" by `find` ..(change location grep and xargs for more effect)
set nonomatch
set pattern=`cat pattern.txt`
set i=1
while ($i <= $#pattern)
find . -name "$pattern[$i]" -mtime +10 |xargs -l ls -ltr |grep -v snapshot
@ i++
end
I have one more question. The flag -iname in find command is not working on solaris. Do not find the relative flag to ignore case sensitive in find command. Pls help.