Here is my delima. I have a text file of a server which has every file directory listed on it, along with "Last Access", "Last Modified", & "Creation Date".
What I need to find in this file is the any directory deeper than 14 deep. We have a few offices in the firm where users will just copy files at unbelievable directory depths, 14+. Novell's utilities that are provided that will run at the server console does not like anything directory that goes deeper than 15. If it gets enough of the errors the server will just restart.
They lines of the file look like this:
"Y:\CLR\1040EE6\AEXTFMLA.DAT","(unknown)","8/3/2004","7/15/1997","8/4/2001"
What I need to extract from the file would be anything deeper than 14. So I thought that I could search the number of "\" in the lines but can't quite figure out how to use wildcards for this purpose.
Searching Issues
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Using POSIX regular expression syntax:
If you select
Using Search | Find... :Configuration | Preferences | Editor
[X] Use POSIX regular expression syntax
This catches any path in the first field with 15 or more backslashes.Find what: ^"([^\"]*\\){15,}
[X] Regular expression
If you select
it will bookmark all lines containing such paths.Mark All
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Good solution again from ben_josephs
Remember that this is NOT the place to post questions.......
http://www.textpad.com/forum/viewtopic.php?t=3755
Remember that this is NOT the place to post questions.......
http://www.textpad.com/forum/viewtopic.php?t=3755
Last edited by Bob Hansen on Thu Aug 12, 2004 4:05 pm, edited 2 times in total.
Hope this was helpful.............good luck,
Bob
Bob