The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to select a particular media from the printer with a UNIX command HelpMeOUt UNIX for Dummies Questions & Answers 3 12-20-2007 01:42 PM
Sorting Files according to their Extensions... marconi Shell Programming and Scripting 1 12-07-2007 12:47 PM
Find files with 3 different extensions mahalakshmi Shell Programming and Scripting 11 12-28-2006 03:19 AM
List Files by Extensions newbienix UNIX for Dummies Questions & Answers 2 05-25-2006 02:05 AM
Korn shell "select" command mpegler Shell Programming and Scripting 2 06-23-2002 06:41 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 05-01-2006
Registered User
 

Join Date: Feb 2006
Posts: 17
Command to select files with different extensions

I want to select files which have different extensions such as .cpp, .cs, .h

I can select one of them as

Code:
find . -name "*.cpp"
but I want to select all of them in one command only. It should be pretty simple but I'm not able to get it. Any help with the command will be greatly appreciated.
Reply With Quote
Forum Sponsor
  #2  
Old 05-01-2006
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
why find

use ls
ls *.cpp *.cs *.h
Btw for find - find . \( -name "*.cpp" -o -name "*.cs" -o -name "*.h" \) should work
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0