guys forget the find command coz with find command u can't get condational output like grep. I will give small example :-
Apr 10 09:12 aacbl222_12aug1998.lqc
Apr 10 09:12 sscbl4534_4sep2001.lqc
Apr 10 09:12 ah66fmi_5jan1997.lqc
Apr 10 09:12 y313h1_7sep1998.lqc
May 11 09:12 aalike_9aug2000.lqc
all this files and thosands more in /test/test2
to get my file I should give some parameter " in this example I give 2 gre some time it will take more than 6 grep's to get what I want " forget it "
--------------------------------------------------
ls -lrt | grep "Apr 10" | grep 1998
Apr 10 09:12 y313h1_7sep1998.lqc
Apr 10 09:12 aacbl222_12aug1998.lqc
--------------------------------------------------
now when I want to print what I got from my command I will do this : -
print y313h1_7sep1998.lqc ; print aacbl222_12aug1998.lqc
when I type
ls -lrt | grep "Apr 10" | grep 1998 | lp -printername
I will get the printes result not the file it self...Pleassse try to understand me and execuse me for my "GOOD" english
Better to read all what I wrote above or just read this
[ HOW I CAN PRINT THE RESULTED FILES AS A FILE NOT AS OUTPUT ]