here it is going to same directory and also running netstat -na | grep 5060
echo $C
shows extra lines which is present in the directory with grep A value which is not actually grepped So how to avoid that value and output will come only 5060
What's in X, and why do you have a backslash before $A? Why do you execute X inside the backticks if you don't want its output to be included? Of course, you can redirect it just like you do with the .profile (again, the purpose of which remains unclear ... do you really want that inside the backticks?)
You have the basic syntax almost right, save for the backslash. Does the following not do what you want?
it is same as my old script but problem is that when after grep 5060 *.* is coming with grep value for that all things wgich are present in that script directory are greped in to that variable ..So I need only to avoid *.* So Pls suggest how to avoid ??