Quote:
Originally Posted by supaphat
ls $SOLHOME/internalDisk/"$fn" 2> /dev/null | wc -l > cfn
What this does is redirect stderr from the `ls` command to /dev/null (bit bucket) =p
I have done the above commands but it gave me this Error Message:
Ambiguous output redirect
I also tried the following:
ls $SOLHOME/internalDisk/"$fn" | wc -l > cfn 2>&errors and gave the same error.