IPB

Welcome Guest ( Log In | Register )


> cygwin
chook
post May 27 2009, 08:46 PM
Post #1


Oh baby bring me down
Group Icon

Group: Agents
Posts: 4,115
Joined: 23-February 06
From: Way out yonder
Member No.: 68



Damn my bash skills are rusty. I am trying to use the find command with regular expressions to collect a list of .cpp and .h files that reside in the child directories of my current directory. Its been bothering me at work that I cannot get both those file types with a single regular expression. Anyone an expert on this? I can do this and use a temp file before I merge and sort the lists, but I didn't want to use it. Anyone got any good advice on scripts?

The machine also has python on it, and I can't use perl on it. crying.gif

Thanks!


--------------------
Southern Rock, beer and bears!
Go to the top of the page
 
+Quote Post

Posts in this topic
- chook   cygwin   May 27 2009, 08:46 PM
- - impala454   CODEfind . -regex ".*\.cpp\|.*...   May 27 2009, 08:58 PM
|- - chook   QUOTE (impala454 @ May 27 2009, 09:58 PM)...   May 28 2009, 10:56 AM
- - impala454   You have to escape the pipe to let it know it...   May 28 2009, 12:27 PM
|- - chook   QUOTE (impala454 @ May 28 2009, 01:27 PM)...   May 28 2009, 12:55 PM
- - FORSAKENR320   QUOTE (chook @ May 27 2009, 09:46 PM) I a...   May 28 2009, 09:33 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 10th September 2025 - 05:11 PM
Skin made by: skeedio.com