Sponsored Content
Top Forums UNIX for Advanced & Expert Users Using find and regular expressions Post 302748725 by PikK45 on Wednesday 26th of December 2012 11:25:31 PM
Old 12-27-2012
I think you can use "maxdepth" flag Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Regular Expressions

How can i create a regular expression which can detect a new line charcter followed by a special character say * and replace these both by a string of zero length? Eg: Input File san.txt hello hi ... (6 Replies)
Discussion started by: sandeep_hi
6 Replies

2. Shell Programming and Scripting

regular expressions

Hi, can anyone advise me how to shorten this: if || ; then I tried but it dosent seem to work, whats the correct way. Cheers (4 Replies)
Discussion started by: jack1981
4 Replies

3. Shell Programming and Scripting

Help with regular expressions

I have following content in the file CancelPolicyMultiLingual3=U|PC3|EN RestaurantInfoCode1=U|restID1|1 ..... I am trying to use following matching extression \|(+) to get this PC3|EN restID1|1 Obviously it does not work. Any ideas? (13 Replies)
Discussion started by: arushunter
13 Replies

4. UNIX for Dummies Questions & Answers

regular expressions

how to find for a file whose name has all characters in uppercase after 'project'? I tried this: find . -name 'project**.pdf' ./projectABC.pdf ./projectABC123.pdf I want only ./projectABC.pdf What is the regular expression that correponds to "all characters are capital"? thanks (8 Replies)
Discussion started by: melanie_pfefer
8 Replies

5. UNIX for Advanced & Expert Users

regular expressions

I have a flat file with the following drug names Nutropin AQ 20mg PEN Cart 2ml Norditropin Cart 15mg/1.5ml I have to extract digits that are before mg i.e 20 and 15 ; how to do this using regular expressions Thanks ram (1 Reply)
Discussion started by: ramky79
1 Replies

6. UNIX for Dummies Questions & Answers

Regular expressions

In regular expressions with grep(or egrep), ^ works if we want something in starting of line..but what if we write ^^^ or ^ for pattern matching??..Hope u all r familiar with regular expressions for pattern matching.. (1 Reply)
Discussion started by: aadi_uni
1 Replies

7. Shell Programming and Scripting

Regular Expressions

what elements does " /^/ " match? I did the test which indicates that it matches single lowercase character like 'a','b' etc. and '1','2' etc. But I really confused with that. Because, "/^abc/" matches strings like "abcedf" or "abcddddee". So, what does caret ^ really mean? Any response... (2 Replies)
Discussion started by: DavidHe
2 Replies

8. Shell Programming and Scripting

Help with regular expressions

I have a file that I'm trying to find all the cases of phone number extensions and deleting them. So input file looks like: abc x93825 def 13234 x52673 hello output looks like: abc def 13234 hello Basically delete lines that have 5 numbers following "x". I tried: x\(4) but it... (7 Replies)
Discussion started by: pxalpine
7 Replies

9. UNIX for Dummies Questions & Answers

Regular Expressions -- Find spaces outside

Hello, I need help with using grep and regular expressions.... I have a long list of about 1000 lines of Chinese flashcards. Here's a small excerpt: 意文 yìwén (given name) 貴姓 guìxìng (honorable surname) 貴 guì (honorable) 姓 xìng (one's surname is; to be surnamed; surname) 呢 ne (interrogative... (2 Replies)
Discussion started by: arduino411
2 Replies

10. Shell Programming and Scripting

Regular Expressions

I am new to shell scripts.Can u please help me on this req. test_user = "Arun" if echo "test_user is a word" else echo "test_user is not a word" (1 Reply)
Discussion started by: chandrababu
1 Replies
Trace(3pm)						User Contributed Perl Documentation						Trace(3pm)

NAME
Debug::Trace - Perl extension to trace subroutine calls SYNOPSIS
perl -MDebug::Trace=foo,bar yourprogram.pl DESCRIPTION
Debug::Trace instruments subroutines to provide tracing information upon every call and return. Using Debug::Trace does not require any changes to your sources. Most often, it will be used from the command line: perl -MDebug::Trace=foo,bar yourprogram.pl This will have your subroutines foo() and bar() printing call and return information. Subroutine names may be fully qualified to denote subroutines in other packages than the default main::. By default, the trace information is output using the standard warn() function. MODIFIERS Modifiers can be inserted in the list of subroutines to change the default behavior of this module. All modifiers can be used in three ways: o ":"name to enable a specific feature. o ":no"name to disable a specific feature. o ":"name"("value")" to set a feature to a specific value. In general, ":"name is equivalent to ":"name"(1)", while ":no"name corresponds to ":"name"(0)". The following modifiers are recognized: :warn Uses warn() to produce the trace output (default). ":nowarn" Sends trace output directly to STDERR. :caller Add basic call information to the trace message, including from where the routine was called, and by whom. This is enabled by default. :stacktrace Add a stack trace (call history). :maxlen(length) Truncate the length of the lines of trace information to length characters. The following modifiers can be used to control the way Data::Dumper prints the values of parameters and return values. See also Data::Dumper. :indent Controls the style of indentation. It can be set to 0, 1, 2 or 3. Style 0 spews output without any newlines, indentation, or spaces between list items. :indent(0) is the default. :useqq When enabled, uses double quotes for representing string values. Whitespace other than space will be represented as "[ ]", "unsafe" characters will be backslashed, and unprintable characters will be output as quoted octal integers. This is the default, use ":nouseqq" to disable. :maxdepth(depth) Can be set to a positive integer that specifies the depth beyond which which we don't print structure contents. The default is 2, which means one level of array/hashes in argument lists and return values is expanded. If you use ":nomaxdepth" or :maxdepth(0), nested structures are fully expanded. :quotekeys Controls wether hash keys are always printed quoted. The default is ":noquotekeys". sortkeys Controls whether hash keys are dumped in sorted order. The default is ":nosortkeys". Modifiers apply only to the subroutines that follow in the list of arguments. METHODS
None, actually. Everything is handled by the module's import. ENVIRONMENT VARIABLES
Environment variable "PERL5DEBUGTRACE" can be used to preset initial modifiers, e.g.: export PERL5DEBUGTRACE=":warn:indent(2):nomaxdepth:quotekeys" SEE ALSO
Data::Dumper, Carp AUTHOR
Jan-Pieter Cornet <jpc@cpan.org>; Jos Boumans <kane@cpan.org>; Johan Vromans <jv@cpan.org>; This is an Amsterdam.pm production. See http://amsterdam.pm.org. COPYRIGHT
Copyright 2002 Amsterdam.pm. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.8.8 2005-06-12 Trace(3pm)
All times are GMT -4. The time now is 11:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy