01-07-2008
Hi all,
the latest solution proposed by radoulov seems to work wonderfully, if my files are pure text files, but it appears that they are not pure text file.
There appears to be control characters within the file that is throwing off the grep statement, causing no file names to be returned.
Can anybody me with this.
thanks
melvyn
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Gurus,
I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file.
eg. if file a.txt exists then send a mail to a@a.com
simillary for b.txt,c.txt etc.
Thanks for your help,
Nimu (6 Replies)
Discussion started by: nimu1979
6 Replies
2. Shell Programming and Scripting
Greetings All,
Need some help, your input is appreciated.
Scenario:
I have five files, each has one line with comletely different content. I execute the command to combine all the five lines of content into a single file.
Goal:
I would like to take that single file that has the... (3 Replies)
Discussion started by: royarellano
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have several text files each containing some data as shown below:
File1.txt
>DataHeader
Data...
Data...
File2.txt
>DataHeader
Data...
Data...
etc.
What I want is to change the 'DataHeader' based on the file name. So the output should look like:
File1.txt
>File1
... (1 Reply)
Discussion started by: Fahmida
1 Replies
4. Shell Programming and Scripting
hello,
I am creating a script that is going to scan the contents of a directory, and if it finds a certain DocumentName that is a certain size (The example, DocumentName and a size of 8777)
If this file exists, it needs to be moved to a directory for later removal/processing..anyone have... (7 Replies)
Discussion started by: jeffs42885
7 Replies
5. Shell Programming and Scripting
Hi All,
I want to remove the content based on the header information .
Please find the example below.
File1.txt
Name|Last|First|Location|DepId|Depname|DepLoc
naga|rr|tion|hyd|1|wer|opr
Nava|ra|tin|gen|2|wera|opra
I have to search for the DepId and remove the data from the... (5 Replies)
Discussion started by: i150371485
5 Replies
6. Red Hat
Hello,
Please help me with this!! Thanks in advance!!
I have a file named file.gc with the content:
1-- Mon Sep 10 08:53:09 CDT 2012
2revoke connect from FR2261;
3delete from mkt_allow where grantee = 'FR2261';
4grant connect to FR2261 with '******';
5alter user FR2261 comment... (0 Replies)
Discussion started by: raosr020
0 Replies
7. Shell Programming and Scripting
Hi Guru's,
I am new to shell scripting. I have a unique requirement:
The system generates a single pdf(/tmp/ABC.pdf) file with Invoices for Multiple Customers, the format is something like this:
Page1 >> Customer 1 >>Invoice1 + invoice 2 >> Page1 end
Page2 >> Customer 2 >>Invoice 3 + Invoice 4... (3 Replies)
Discussion started by: DIps
3 Replies
8. Shell Programming and Scripting
Dear All,
I am having a database that generates daily backup files in the below format.
abc_date_0010.zip.
Can you please suggest a method to copy the last day's file to another location.
I am trying with if statement, but having difficulty while I use the condition like
if ; then
... (4 Replies)
Discussion started by: skooby
4 Replies
9. Shell Programming and Scripting
Hi All,
I have multiple files in the folder, I want to move those files into the other folder on based of name
File names:
Template_server1_01==>
Template_server1_02==>To one directory /Server1
Template_server1_03==>
Template_server2_01==>
Template_server2_02==>To one... (9 Replies)
Discussion started by: sharsour
9 Replies
10. Shell Programming and Scripting
Hi Gurus,
I am SQL developer and new unix user.
I need to create some file and file content based on information in two files.
I have one file contains basic information below file1 and another exception file file2. the rule is if "zone' and "cd" in file1 exists in file2, then file name is... (13 Replies)
Discussion started by: Torhong
13 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)