How to zip csv files having specific pattern in a directory using UNIX shell script?
I have files in a Linux directory . Some of the file is listed below
In my directory other file formats also there with same name. And my direcotry might have sub directory also. I should not consider other files and sub directories for zip process.
Once zip is done,I have to move this csv files into archive directory. I have to write unix script.
Expected Output: zzz_timestamp.zip should have zzz_123_00000_A_1.csv,zzz_121_00000_A_2.csv and zzz_124_00000_A_3.csv yyy_timestamp.zip should have yyy_123_343434_A_1.csv,yyy_1254_343434_A_1.csv
Please let me know how to implement this task.
Last edited by Don Cragun; 12-23-2016 at 05:55 AM..
Reason: Add CODE and ICODE tags.
Hi,
I have a shell script which is to perform a check if all 4 particular type of files exists in a directory.
If ALL 4 files are present within a specific Timeframe, then tar these files and zip it.
If not all 4 files are present in the directory after the specific timeframe, then tar... (1 Reply)
Hello,
Below is my input file's content ( in HP-UX platform ):
ABCD120672-B21 1
ABCD142257-002 1
ABCD142257-003 1
ABCD142257-006 1
From the above, I just want to get the field of 13 characters that comes after 'ABCD' i.e '120672-B21'... . Could... (2 Replies)
help trying to figure out a batch shell script to zip each file in a directory into its own zip file
using this code but it does not work
tryed this also
nothing seems to work , just ends without zipping any files
i have over 3000 files i need to zip up individualy
... (7 Replies)
Hi Guru's,
I have to write a shell script which groups file names based upon the certain matching string pattern, then creates the Tar file for that particular group of files and then zips the Tar file created for the respective group of files.
For example, In the given directory these files... (3 Replies)
I admit I am terrible with scripting, so when I was asked to store users' command history lines and zip them on monthly basis what I did was to create a file "user_history_Feb" with the following contents:
Part A
# more user_history_Feb
cp -p /var/log/user_history/*history... (6 Replies)
Hi,
Is there a way to find all the files from a specific location and then zip them into a single file, even if they are in multiple directories? (3 Replies)
Hello,
I have Fedora 14 installed on my machine I have a .zip file ( some latex package) which I want to unzip to some location in the Latex paths /usr/share.../texmf/..
so I went to super user mode, created the directory for this package over there,
mkdir logo
and tried... (1 Reply)
Hi Folks,
There is a job which generates a .zip files every day at /usr/app/generated directory , now please advise for the script that will delete this zip files permanently.but while deleting it should make sure that it will not delete the last two days recently generated zip files and this... (1 Reply)
Hi Expert,
We have some shell scripts which Internally uses Perl Script to Unzip the source zip files which comes to inbound directory. So now our requirement is to avoid the dependency on Perl Script and us Shell Script to unzip the files. I have the Perl script with me attached can some one... (3 Replies)
I need a script which should watch a directory for a file with specific directory.
If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column.
The file should be moved to another directory and the a... (8 Replies)
Discussion started by: akashdeepak
8 Replies
LEARN ABOUT CENTOS
slasd8
slasd8.f(3) LAPACK slasd8.f(3)NAME
slasd8.f -
SYNOPSIS
Functions/Subroutines
subroutine slasd8 (ICOMPQ, K, D, Z, VF, VL, DIFL, DIFR, LDDIFR, DSIGMA, WORK, INFO)
SLASD8 finds the square roots of the roots of the secular equation, and stores, for each element in D, the distance to its two nearest
poles. Used by sbdsdc.
Function/Subroutine Documentation
subroutine slasd8 (integerICOMPQ, integerK, real, dimension( * )D, real, dimension( * )Z, real, dimension( * )VF, real, dimension( * )VL, real,
dimension( * )DIFL, real, dimension( lddifr, * )DIFR, integerLDDIFR, real, dimension( * )DSIGMA, real, dimension( * )WORK, integerINFO)
SLASD8 finds the square roots of the roots of the secular equation, and stores, for each element in D, the distance to its two nearest
poles. Used by sbdsdc.
Purpose:
SLASD8 finds the square roots of the roots of the secular equation,
as defined by the values in DSIGMA and Z. It makes the appropriate
calls to SLASD4, and stores, for each element in D, the distance
to its two nearest poles (elements in DSIGMA). It also updates
the arrays VF and VL, the first and last components of all the
right singular vectors of the original bidiagonal matrix.
SLASD8 is called from SLASD6.
Parameters:
ICOMPQ
ICOMPQ is INTEGER
Specifies whether singular vectors are to be computed in
factored form in the calling routine:
= 0: Compute singular values only.
= 1: Compute singular vectors in factored form as well.
K
K is INTEGER
The number of terms in the rational function to be solved
by SLASD4. K >= 1.
D
D is REAL array, dimension ( K )
On output, D contains the updated singular values.
Z
Z is REAL array, dimension ( K )
On entry, the first K elements of this array contain the
components of the deflation-adjusted updating row vector.
On exit, Z is updated.
VF
VF is REAL array, dimension ( K )
On entry, VF contains information passed through DBEDE8.
On exit, VF contains the first K components of the first
components of all right singular vectors of the bidiagonal
matrix.
VL
VL is REAL array, dimension ( K )
On entry, VL contains information passed through DBEDE8.
On exit, VL contains the first K components of the last
components of all right singular vectors of the bidiagonal
matrix.
DIFL
DIFL is REAL array, dimension ( K )
On exit, DIFL(I) = D(I) - DSIGMA(I).
DIFR
DIFR is REAL array,
dimension ( LDDIFR, 2 ) if ICOMPQ = 1 and
dimension ( K ) if ICOMPQ = 0.
On exit, DIFR(I,1) = D(I) - DSIGMA(I+1), DIFR(K,1) is not
defined and will not be referenced.
If ICOMPQ = 1, DIFR(1:K,2) is an array containing the
normalizing factors for the right singular vector matrix.
LDDIFR
LDDIFR is INTEGER
The leading dimension of DIFR, must be at least K.
DSIGMA
DSIGMA is REAL array, dimension ( K )
On entry, the first K elements of this array contain the old
roots of the deflated updating problem. These are the poles
of the secular equation.
On exit, the elements of DSIGMA may be very slightly altered
in value.
WORK
WORK is REAL array, dimension at least 3 * K
INFO
INFO is INTEGER
= 0: successful exit.
< 0: if INFO = -i, the i-th argument had an illegal value.
> 0: if INFO = 1, a singular value did not converge
Author:
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
September 2012
Contributors:
Ming Gu and Huan Ren, Computer Science Division, University of California at Berkeley, USA
Definition at line 166 of file slasd8.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
Version 3.4.2 Tue Sep 25 2012 slasd8.f(3)