Search if file exists for a file pattern stored in array
Hi experts,
I have two arrays one has the file paths to be searched in , and the other has the files to be serached.For eg
searchfile.dat will have
i have to search for files that could be abc303*.dat or for that matter any extension . abc303*.dat.gz
The following code doesnt work if i give * , it works only if i give the exact file name to be searched in the searchfile.dat
Dear all ,
I have a file whose content has the following format:
jboss.web:type=ThreadPool,name=AAAA
jboss.web:type=ThreadPool,name=BBBB
How can I parse this file to get the value of the name of each line (AAAA , BBBB) and store the result to an array ? (array = AAAA , array = BBBB).... (4 Replies)
Hello friends,
I am writing a simple shell script which will copy one particular type of files to backup folder if files exists. If files doesn't exists, mv command should not be executed.
My file pattern is like wcm-spider-maestro.log.2009-07-15, wcm-spider-maestro.log.2009-07-16 etc..
I... (6 Replies)
Hi,
I have two files say xxx.txt and yyy.txt. xxx.txt is with list of patterns within double quotes. Eg.
"this is the line1"
"this is the line2"
The yyy.txt with lot of lines. eg:
"This is a test message which contains rubbish information just to fill the page which is of no use. this is... (3 Replies)
So, I know how to do some of this stuff on an individual level, but I'm drawing a blank as to how to put it all together.
I have a pattern that I'm looking for in a log file. The log file I know came in yesterday, so I want to limit the search to that day's listing of files. How would I do... (5 Replies)
Hi,
I have got some 10 filenames stored in a file or displayed in the console as a result of some query i made.. Now I need to open each of these files and search for a pattern in these 10 files.. Can someone help me with this?
Thanks,
Jean (9 Replies)
Hello,
I have few lines to be inserted in file_lines_to_insert.
In another file final_file, I have to add lines from above file file_lines_to_insert before a particular pattern.
e.g.
$ cat file_lines_to_insert => contents are
abc
def
lkj
In another file final_file, before a... (6 Replies)
Hi ! All
I just want to search and write to new file if pattern is found in text file
following are my text files by which I want to search Month and last column number
my text file1
15-Jan-2011 25 ARTS 1255 125 125 178 198
15-Jan-2011 25 ARTS 1255 125 125 178 198
15-Jan-2011 25... (3 Replies)
Hello everyone,
I want to search for a specific pattern in the entire codebase that exists.
Pattern:
I need to find wherever there is a harcoded value "Vxxxx" and "GCxxxx" exists in the perl scripts and shell scripts. (where xxxx will be always number)
I need the script name and the value... (1 Reply)
hi,
i have a variable which contains some file names delimited by a single space.
FNAME="s1.txt s2.lst s3.cvs s4.lst"
i have another variable that contains a pattern
FILE_PATTERN="*.lst"
i want to take the filenames from FNAME variable and assign each file name in to an array say
for... (8 Replies)
he below looks in $dir for any pattern of fileone. As is, it executes but only returns File found if the exact format in the script exsists. Why isn't a pattern of fileone being looked for and if it is in $dir, File found. I think that is what should happen. Thank you :).
dir=/path/to
if... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT DEBIAN
pymcaroitool
pymcaroitool(1) PyMca X-Ray Fluorescence Toolkit pymcaroitool(1)NAME
pymcaroitool - PyMca region-of-interest imaging X application
SYNOPSIS
pymcaroitool [OPTIONS]... [FILE(S)]
DESCRIPTION
Start the graphical user interface of the PyMca X-Ray Fluorescence Toolkit region-of-interest imaging tool.
This tool is best suited for handling datasets that can be represented by three-dimensional arrays. Typical cases are stacks of images
(first dimension is image number) or 2D maps of 1D spectra (last dimension is spectrum channel number).
It allows to display maps of particular regions of the spectra or spectra of a particular region of the map.
A system of plugins allow to extend the capabilities of this tool. Plugins for multivariate analysis are already built in.
If FILE is given, it will be opened in the program provided its format is supported.
EXAMPLES
pymcaroitool
Start the program with a file browser to select the input files.
pymcaroitool file_0001.edf
Tries to open the file named file_0001.edf and all indexed files of the form file_????.edf where ???? is a number.
pymcaroitool --imagestack=1 file_0001.edf
Tries to open the file named file_0001.edf and all indexed files of the form file_????.edf where ???? is a number as a set of images.
pymcaroitool uncompressed_tiff_file_0001.tif
Tries to open a series of uncompressed TIFF files as an image stack.
pymcaroitool --begin=100 --end=200 --filepattern=file_%05d.edf
Start the program loading the single indexed files from file_00100.edf to file_00200.edf
pymcaroitool --begin=10,100 --end=20,200 --filepattern=row%d_col%03d.dat
Load the double indexed files from row10_col100.dat, row10_col101.dat, ... to row20_col00199.dat, row20_col00200.dat
CAVEATS
If files f_000.xxx and f_001.xxx are present in the same directory, the program will always try to load both of them unless a cumbersome
way using a file pattern is used.
SEE ALSO
HDF5, h5py
ESRF March 2012 pymcaroitool(1)