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)