02-27-2002
not really...
Makaveli.2003,
I'm not trying to do the same thing... I was just looking through all of the postings on this thread and noticed that no one was putting the single quote around the tr test. So, I figured that I might just throw it in there as a suggestion. You know, I had one of those bright idea moments.
Glad you got it all figured out though! Have a good one!
D
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
when i list the content of a directory
date informations are also listed (ls -ltr)
for included files and directories.
for example: i see the date Jun 29 14:43
for one of the included directory,
but when i look into the files contained in
this directory i cannot see any file with this... (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies
2. UNIX for Dummies Questions & Answers
hi,
say I have
dirA/file1
dirB/file2
and I tar them up, and then do
zcat Tar.tar | tar tvf -
Sometimes I will see:
dirA/
dirA/file1
dirB/
dirB/file2
yet other times I will see (4 Replies)
Discussion started by: JamesByars
4 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
Got a question to make a script what reads a directory and put the file names from that directory in a file with some extra text.
ls /tempdir
output is:
file1.gfh
file2.txt
file4.zzz
these file names (always with an extention) must be placed in a line and written to... (2 Replies)
Discussion started by: ToXiQ
2 Replies
4. Shell Programming and Scripting
Hi all,
Have to generate an xml having information related to files in the directory
Suppose i have file
file1.xml (datafile)
file2.xml (datafile)
file3.xml (metafile)
Now i need to generate an xml in the format >>
<?xml version="1.0" encoding="UTF-8"?>
<AuditFile Version="2.0">... (8 Replies)
Discussion started by: abhinav192
8 Replies
5. Shell Programming and Scripting
Hi
i have a single line xml file having many account no tag, from which i need only the account no from the tag. any one can help on this.
below is the xml file:
... (2 Replies)
Discussion started by: Saravanapk
2 Replies
6. Shell Programming and Scripting
Hi to all,
I got this content/pattern from file http.log.20110808.gz
mail1 httpd: Account Notice: close igchung@abc.com 2011/8/7 7:37:36 0:00:03 0 0 1
mail1 httpd: Account Information: login sastria9@abc.com proxy sid=gFp4DLm5HnU
mail1 httpd: Account Notice: close sastria9@abc.com... (16 Replies)
Discussion started by: Mr_47
16 Replies
7. Shell Programming and Scripting
Hi
I am trying to extract information out of a file but keep getting grep cant open errors
the code is below:
#bash
#extract orders with blank address details
#
# obtain the current date
# set today to the current date ccyymmdd format
today=`date +%c%m%d | cut -c24-31`
echo... (8 Replies)
Discussion started by: Bruble
8 Replies
8. UNIX for Dummies Questions & Answers
I need my code to compare two different files that are in two completely different directories, How can I do this?
So for example, my code will look at file1 which is in my home directory, and compare the files with those from file2 that is in /abc/adf/adr/afc/adf/file2... does that make sense? (1 Reply)
Discussion started by: castrojc
1 Replies
9. UNIX for Dummies Questions & Answers
I have a flat file that looks like this, let's call it Chromosome_9.txt:
FT /Gene_Name="Guanyl-Acetylase 9"
FT /Gene_Number"36952"
FT /Gene_Name="Endoplasmic Luciferase"
FT /Gene_Number"36953"
FT ... (4 Replies)
Discussion started by: Twinklefingers
4 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 REDHAT
pdl::fit::gaussian
Gaussian(3) User Contributed Perl Documentation Gaussian(3)
NAME
PDL::Fit::Gaussian - routines for fitting gaussians
DESCRIPTION
This module contains some custom gaussian fitting routines. These were developed in collaboration with Alison Offer, they do a reasonably
robust job and are quite useful.
Gaussian fitting is something I do a lot of, so I figured it was worth putting in my special code.
Note this code is also used in the Karma package.
SYNOPSIS
use PDL::Fit::Gaussian;
($cen, $pk, $fwhm, $back, $err, $fit) = fitgauss1d($x, $data);
($pk, $fwhm, $back, $err, $fit) = fitgauss1dr($r, $data);
FUNCTIONS
fitgauss1d
Fit 1D Gassian to data piddle
($cen, $pk, $fwhm2, $back, $err, $fit) = fitgauss1d($x, $data);
($cen, $pk, $fwhm2, $back, $err, $fit) = fitgauss1d($x, $data);
xval(n); data(n); [o]xcentre();[o]peak_ht(); [o]fwhm(); [o]background();int [o]err(); [o]datafit(n); [t]sig(n); [t]xtmp(n); [t]ytmp(n);
[t]yytmp(n); [t]rtmp(n);
Fit's a 1D Gaussian robustly free parameters are the centre, peak height, FWHM. The background is NOT fit, because I find this is generally
unreliable, rather a median is determined in the 'outer' 10% of pixels (i.e. those at the start/end of the data piddle). The initial esti-
mate of the FWHM is the length of the piddle/3, so it might fail if the piddle is too long. (This is non-robust anyway). Most data does
just fine and this is a good default gaussian fitter.
SEE ALSO: fitgauss1dr() for fitting radial gaussians
fitgauss1dr
Fit 1D Gassian to radial data piddle
($pk, $fwhm2, $back, $err, $fit) = fitgauss1dr($r, $data);
($pk, $fwhm2, $back, $err, $fit) = fitgauss1dr($r, $data);
xval(n); data(n); [o]peak_ht(); [o]fwhm(); [o]background();int [o]err(); [o]datafit(n); [t]sig(n); [t]xtmp(n); [t]ytmp(n); [t]yytmp(n);
[t]rtmp(n);
Fit's a 1D radial Gaussian robustly free parameters are the peak height, FWHM. Centre is assumed to be X=0 (i.e. start of piddle). The
background is NOT fit, because I find this is generally unreliable, rather a median is determined in the 'outer' 10% of pixels (i.e. those
at the end of the data piddle). The initial estimate of the FWHM is the length of the piddle/3, so it might fail if the piddle is too long.
(This is non-robust anyway). Most data does just fine and this is a good default gaussian fitter.
SEE ALSO: fitgauss1d() to fit centre as well.
BUGS
May not converge for weird data, still pretty good!
AUTHOR
This file copyright (C) 1999, Karl Glazebrook (kgb@aaoepp.aao.gov.au), Gaussian fitting code by Alison Offer (aro@aaocbn.aao.gov.au). All
rights reserved. There is no warranty. You are allowed to redistribute this software / documentation under certain conditions. For details,
see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be included
in the file.
perl v5.8.0 2003-01-29 Gaussian(3)