Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-22-2008, 09:51 AM   #1
LQ Newbie
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
cp directories for reg exp

Hi everyone,

Is there a quick way to cp directories and only certain files? For instance I would like to recursively cp my home but only includes *.cpp and *.h.


- seb
Old 02-22-2008, 10:35 AM   #2
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
the 'find' command will do

welcome to lq!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
python reg exp help Bopi Programming 1 12-03-2006 03:29 AM
Problem with reg exp script abefroman Programming 2 12-19-2005 04:53 PM
Perl Reg Exp Question amytys Programming 1 12-09-2005 01:53 PM
prob with reg exp rajatgarg Programming 3 05-28-2004 10:21 AM
Reg Exp ugenn Programming 4 09-19-2002 01:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration