Hi All,
I'm doing the following...
bash%> x=`ls *.sh |wc -l`;echo $x
3
bash%>
Which is great !!
However when there are no files I get:-
bash%> x=`ls *.boo |wc -l`;echo $x
*.boo: No such file or directory
0
bash%>
How can I get back just 0, without "
*.boo: No such file or directory"
Thanking you all inadvance...