03-08-2010
Thanks all for your suggestion. I will look into them to see which one fit my need. Thanks again.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have to grep a particular pattern say "meter number" in 100s of zip files
file1.zip
:
:
:
:
file100.zip
how to achive this?
cat *.zip | grep "meter number"
also i dnt want to unzip and then grep it......
hope i made myself clear. thanks in advance (5 Replies)
Discussion started by: ali560045
5 Replies
2. UNIX for Dummies Questions & Answers
Let's say I've got File.tgz that contains:-
Apple.txt
Banana.txt
Carrot.txt
AppleBanana.txt
Now, I would like to only extract files that contain the patter "Apple".
I've tried this
tar -xvf File.tgz 'tar -tf File.tgz | grep 'Apple''
but it does not work. Please help. Thanks. (12 Replies)
Discussion started by: percivalwcy
12 Replies
3. Shell Programming and Scripting
Hi have one Perl file inside that i am defining
at an array file.
@temp_vmdk_files = `grep vmdk '$guest_vmx'`
where my $guest_vmx=/vmfs/volumes/47e40fec-9c8bb7f7-d076-001422159f8a/BES Exchange/BES-Exchange.vmx
and i am just want to do grep of "vmdk" files from the above path
but when... (5 Replies)
Discussion started by: bp_vardhaman
5 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
Need help. Anybody seen this kind of file before?
file.tgz.1of2
file.tgz.2of2
how to extract this tgz file? Any help?
Tq (5 Replies)
Discussion started by: zeedwolf
5 Replies
5. UNIX for Dummies Questions & Answers
All,
The bottom line is that im reading a file, storing it as variables, recursively grep searching it, and then piping it to allow word counts as well. I am unsure on how to open any .zip .tar and .gzip, search for keywords and return results.
Any help would be much appreciated!
Thanks (6 Replies)
Discussion started by: ryan.lee
6 Replies
6. Shell Programming and Scripting
Hi Gurus,
I am working with a korn shell script to simplify some operations of calculation number of lines inside compressed file.
The called function (inside a cycle) is the following:
#########################################
# F.ne: CheckCount
#########################################... (3 Replies)
Discussion started by: GERMANICO
3 Replies
7. UNIX for Advanced & Expert Users
how to read the text file inside the jar without extracting jar. (3 Replies)
Discussion started by: karthikn
3 Replies
8. Shell Programming and Scripting
This is for Red Hat Enterprise Linux Client release 5.7 (Tikanga).
Wanna extract entire contents of a tar.gz to a folder of my choosing. Thanks (2 Replies)
Discussion started by: stevensw
2 Replies
9. Shell Programming and Scripting
Hi,
I am reading file records inside a while loop,
and want to update the record when certain condition is met.
How can I update a file while being read?
I want to avoid using temporary files, copy, rename, ...
while IFS=',' read -r f1 f2
do
function(f1,f2)
if
then
<add... (1 Reply)
Discussion started by: ysrini
1 Replies
10. UNIX for Beginners Questions & Answers
Hi Experts,
Need your guidance for case statement. I tried many way but no success yet.Now my existing code is doing something like below. Each Line of the input file contains one test case.#!/bin/bash
FILE=$1
while read LINE; do
do COMMAND
done < $FILE
Now I want to modify the code... (6 Replies)
Discussion started by: pradyumnajpn10
6 Replies
LEARN ABOUT REDHAT
pdl::polynomial
Polynomial(3) User Contributed Perl Documentation Polynomial(3)
NAME
PDL::Fit::Polynomial - routines for fitting with polynomials
DESCRIPTION
This module contains routines for doing simple polynomial fits to data
SYNOPSIS
$yfit = fitpoly1d $data;
FUNCTIONS
fitpoly1d
Fit 1D polynomials to data using min chi^2 (least squares)
Usage: ($yfit, [$coeffs]) = fitpoly1d [$xdata], $data, $order, [Options...]
Signature: (x(n); y(n); [o]yfit(n); [o]coeffs(order))
Uses a standard matrix inversion method to do a least squares/min chi^2 polynomial fit to data. Order=2 is a linear fit (two parameters).
Returns the fitted data and optionally the coefficients.
One can thread over extra dimensions to do multiple fits (except the order can not be threaded over - i.e. it must be one fixed scalar num-
ber like "4").
The data is normalised internally to avoid overflows (using the mean of the abs value) which are common in large polynomial series but the
returned fit, coeffs are in unnormalised units.
$yfit = fitpoly1d $data,2; # Least-squares line fit
($yfit, $coeffs) = fitpoly1d $x, $y, 4; # Fit a cubic
$fitimage = fitpoly1d $image,2 # Fit a quadratic to each row of an image
$myfit = fitpoly1d $line, 2, {Weights => $w}; # Weighted fit
Options:
Weights Weights to use in fit, e.g. 1/$sigma**2 (default=1)
BUGS
May not work too well for data with large dynamic range.
SEE ALSO
"polyfit" in PDL::Slatec
AUTHOR
This file copyright (C) 1999, Karl Glazebrook (kgb@aaoepp.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 2001-07-13 Polynomial(3)