how do you put a space in a wild card thing..
example
"LastAnalysisT.*${MONTH}.*${DAY}.*20${YEAR}"
I need to make it something like
"LastAnalysisT.*${MONTH}<I need a space here>.*${DAY}.*20${YEAR}"
So it would be something like:
LastAnalyst*May 24*2004
Where * just means I dont... (1 Reply)
Hi All,
I would like to find out the existence of files with wild card using CSH.
I have used the below code but does not seem to work.
Can any expert give me some advice ?
set nonomatch
set pattern = "_xxx"
set filetype = ( *$pattern* )
if ( -e $filetype) then
echo... (2 Replies)
if ; then => is it correct?
i need to check 10 files size and do the same action. The file name is same but extension of the files are different. how do i deal with it? Please help (1 Reply)
I would be very grateful if someone could help me with this; using pop, shift, push, and the starting code below, I'd like a script that sufficiently "shuffles" a simulated deck of cards before printing the top five cards.
#!/usr/bin/perl
@startingdeck = ("A H","2 H","3 H","4 H","5 H","6... (9 Replies)
hi all,
i have created a file by name tt and while listing the file ,i used the command
$ls t from which i was expecting not to list tt file output coz of uppercase range, But it listed that file tt file and am not able understand the reason. kindly help.
NOTE OS :Red Hat Enterprise... (0 Replies)
Hi,
I have a file named as StateDCH_CSHCS_100131.txt and the digits in the file name changes everyday. I have to read this file from UTL_FILE package of Oracle 10g. So I want to rename this file picking StateDCH*.txt to StateDCH_Standard.txt a fixed name so that my UTL_FILE utility can be able... (4 Replies)
HI All,
I have a script that needs to find out a list of files in a directory, i pass the search parameter as an argument.
opendir ( DIR, $dir ) || die "Error in opening dir $dirname\n";
@filename1 = (grep {/$File_pattern/ } readdir(DIR));
The problem is my file patterns are like... (1 Reply)
Im trying to use wild cards to find files that start with either an upper or lower case letter e.g. list files that beginning with b or B, i also want to sort them by the time they were last modified. e.g latest file created first.
At the moment i have the following code that
ls -d... (3 Replies)
Hi
Can somebody please show me how to check from within a KSH script if a directory exists on that same host when parts of the directory tree are unknown?
If these wildcard dirs were the only dirs at that level then ...
RETCODE=$(ls -l /u01/app/oracle/local/*/* | grep target_dir) ... will... (4 Replies)
Discussion started by: user052009
4 Replies
LEARN ABOUT DEBIAN
perl-depends
PERL-DEPENDS(1) cvs status - formatter PERL-DEPENDS(1)NAME
perl-depends - Roughly find out module depends from Perl file(s)
SYNOPSIS
perl-depends [options] FILE [FILE ...]
DESCRIPTION
Find out roughly the modules the program uses. This is based on the idea, that Perl evaluates the "use" commands at compile time and stores
the loaded module information into the %INC variable. By examining the loaded modules and comparing them against the standard Perl modules,
the external module dependencies can be roughly estimated.
The depends information can be used to determine what external modules have to be installed before a program can be used.
The target FILE have to be instrumented with the dependency checking code. The resulting "binary" is then stored in a temporary file which
the user runs.
This program does not run the instrumented files because it cannot know what possible options need to be passed for the program to trigger
"no behavior". That is, something that doesn't actually involve executing the "binary" in real. Such options passed would include
--version, --dry-run, invalid options like --generate-syntax-error-now, or invalid files etc. to make program stop on error. The user can
know better the details of running the intrumented file.
An example of output: the external module depends here is 'Regexp::Common' and the rest of them can be ignored.
Regexp::Common Regexp/Common.pm
Regexp::Common::CC Regexp/Common/CC.pm
...
OPTIONS -e, --extension=EXT
Use extension EXT for instrumented files. The default is ".tmp".
-h, --help
Print text help
--help-html
Print help in HTML format.
--help-man
Print help in manual page man(1) format.
-v, --verbose LEVEL
Print informational messages. Increase numeric LEVEL for more verbosity.
-V, --version
Print contact and version information.
EXAMPLES
Instrument a file, run it to see results and delete instrumentation:
perl-depends file.pl
perl file.pl.tmp --version
rm *.tmp
TROUBLESHOOTING
None.
ENVIRONMENT
None.
FILES
None.
EXIT STATUS
This program's exit status is not defined.
The instrumented programs exit status is 1 in case external moduels are displayed and 0 if no external modules are found.
DEPENDENCIES
Uses standard Perl modules.
BUGS AND LIMITATIONS
None.
SEE ALSO cpan(1)AVAILABILITY
http://freshmeat.net/projects/perl-depends
AUTHOR
Jari Aalto <jari.aalto@cante.net>
LICENSE
Copyright (C) 2009-2011 Jari Aalto <jari.aalto@cante.net>
This program is free software; you can redistribute and/or modify program under the terms of GNU General Public license either version 2 of
the License, or (at your option) any later version.
perl v5.10.1 2011-03-24 PERL-DEPENDS(1)