Or you could do it the easy way:
ls -alR |grep "index.html" > temp.file
Since > redirects just stdout and not stderr you get the error messages on screen and not in your file...
Adam Augustine
Michael L Torrie wrote:
Run bash. I don't know how to merge streams in csh.
On Mon, 2003-02-24 at 12:56, Michael Ryan Byrd wrote:
Oh, I'm on a SunOS 5.7 box:
ATTEMPT #1:
mybox:/project% ls -alR 2>&1 |grep "index.html" Ambiguous output redirect.
ATTEMPT #2:
mybox:/project% ls -alR | grep "index.html" 2> /dev/null grep: can't open 2
ideas?
TIA
Ryan
____________________
BYU Unix Users Group http://uug.byu.edu/
___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list
____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list
