Sponsored Content
Operating Systems HP-UX [Solved] Help with a script to gzip/move files Post 302576315 by fretagi on Thursday 24th of November 2011 09:15:53 AM
Old 11-24-2011
Hi

VBE:

I can move the files them gzip them, but I found something else that puzle me, look:


Code:
itc01[132]/data/ICTPRD/bmd1/rating/processed #find . -type f \( -name "*.tap" \) -exec ls -lrt {} \; | head
-rw-r--r--   1 ictprd     ict          50184 Nov  2 15:20 ./ICTCDMOZ01AGOUT0280620111102151703.tap
-rw-r--r--   1 ictprd     ict          98072 Nov  2 15:20 ./ICTCDMOZ01AGOUT0280820111102151708.tap
-rw-r--r--   1 ictprd     ict         158752 Nov  2 15:20 ./ICTCDMOZ01AGOUT0281020111102151713.tap
-rw-r--r--   1 ictprd     ict         108896 Nov  2 15:20 ./ICTCDMOZ01AGOUT0280920111102151711.tap
-rw-r--r--   1 ictprd     ict          38704 Nov  2 15:20 ./ICTCDMOZ01AGOUT0281120111102151716.tap
-rw-r--r--   1 ictprd     ict          39360 Nov  2 15:20 ./ICTCDMOZ01AGOUT0281220111102151719.tap
-rw-r--r--   1 ictprd     ict          76424 Nov  2 15:20 ./ICTCDMOZ01AGOUT0280720111102151706.tap
-rw-r--r--   1 ictprd     ict          26240 Nov  2 15:20 ./ICTCDMOZ01AGOUT0281320111102151721.tap
-rw-r--r--   1 ictprd     ict          68224 Nov  2 15:20 ./ICTCDMOZ01AGOUT0281420111102151722.tap
-rw-r--r--   1 ictprd     ict          10824 Nov  2 15:20 ./ICTCDMOZ01AGOUT0281620111102151725.tap
itc01[133]/data/ICTPRD/bmd1/rating/processed #
itc01[133]/data/ICTPRD/bmd1/rating/processed #ls -lrt *.tap | head
-rw-r--r--   1 ictprd     ict          12464 Sep 21 12:33 ICTCDMOZ01AGOUT0274620110921123027.tap
-rw-r--r--   1 ictprd     ict          27552 Sep 21 12:33 ICTCDMOZ01AGOUT0274720110921123037.tap
-rw-r--r--   1 ictprd     ict          20008 Sep 21 12:33 ICTCDMOZ01AGOUT0274820110921123052.tap
-rw-r--r--   1 ictprd     ict          15088 Sep 21 12:33 ICTCDMOZ01AGOUT0274920110921123100.tap
-rw-r--r--   1 ictprd     ict           8856 Sep 21 12:33 ICTCDMOZ01AGOUT0275020110921123103.tap
-rw-r--r--   1 ictprd     ict           7544 Sep 21 12:33 ICTCDMOZ01AGOUT0275120110921123106.tap
-rw-r--r--   1 ictprd     ict          23616 Sep 21 12:33 ICTCDMOZ01AGOUT0275320110921123110.tap
-rw-r--r--   1 ictprd     ict          20664 Sep 21 12:35 ICTCDMOZ01AUSOP0281420110921123227.tap
-rw-r--r--   1 ictprd     ict          33784 Sep 21 12:35 ICTCDMOZ01AUSOP0281520110921123233.tap
-rw-r--r--   1 ictprd     ict          39360 Sep 21 12:35 ICTCDMOZ01AUSOP0281620110921123238.tap
itc01[134]/data/ICTPRD/bmd1/rating/processed #


Why is if I use find, I see only november files, but if I do ls -lrt *.tap I see september files???

LUDWIG:

You are right the issue is september only:
I am going to test your script , although I did not understand the "gzip -9" section. can you explain? if its possible


regards

Last edited by pludi; 11-24-2011 at 10:35 AM..
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to move trace files

Please debug this shell script for me.. Basically the idea is to run the script, based on the command to move some trace files to a separate directory and I am getting the error. Only the COMMAND that has rm {} works and I basically want to use it for the fourth one. Please try for the 2nd, 3rd and... (4 Replies)
Discussion started by: ST2000
4 Replies

2. UNIX for Dummies Questions & Answers

Script to move blank files

Anyone could give me an example of scrip to move blank files found into a dir? Thanks, Leandro Takeda (3 Replies)
Discussion started by: letakeda
3 Replies

3. Shell Programming and Scripting

Need script to move files based on name

Hi folks, I'm new here and appreciate greatly any help. I have a bunch of files that need be moved and renamed. Fortunately, they are all in sequence... Present filename and path: /.catalog1/t76038_842-01 Move to: /.catalog1/76038-01 So, we need to drop the... (8 Replies)
Discussion started by: axslinger
8 Replies

4. Shell Programming and Scripting

Need shell script to move files

Hi , I need a simple shell script to move the files from one directory to another directory after every 1 hour..!!! ?? (1 Reply)
Discussion started by: SARAL SAXENA
1 Replies

5. Shell Programming and Scripting

help with a script to gzip/move files

Hi Please can you help me in writing a script to find files on a specific directory, and of extension "tap" but only of the month of september, gzip and move them to another directory. Your help will be appreciated. (4 Replies)
Discussion started by: fretagi
4 Replies

6. Shell Programming and Scripting

Script move files by name

hi, I have a lot of files named xxxxx__AA.txt, xxxxx__BB.txt, xxxxx__CC.txt and I would like to move xxxxx__AA.txt in AA directory, xxxxx__BB.txt in BB etc. Could you help me do it in bash script? (5 Replies)
Discussion started by: corfuitl
5 Replies

7. Shell Programming and Scripting

Script to move certain no. of files every second

Hi All, I am new to Linux/Scripting and need some assistance in coming up with a script that can move certain amount of files from one directory to other every seconds. Usercase: We have around 100k files in tmp directory on my server which needs to be moved to another folder to get... (3 Replies)
Discussion started by: Raj1184
3 Replies
mlib_SignalReSampleFIRInit_S16_S16(3MLIB)		    mediaLib Library Functions			 mlib_SignalReSampleFIRInit_S16_S16(3MLIB)

NAME
mlib_SignalReSampleFIRInit_S16_S16, mlib_SignalReSampleFIRInit_S16S_S16S, mlib_SignalReSampleFIRInit_F32_F32, mlib_SignalReSample- FIRInit_F32S_F32S - initialization for resampling with filtering SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_SignalReSampleFIRInit_S16_S16(void **state, const mlib_f32 *flt, mlib_s32 tap, mlib_s32 ufactor, mlib_s32 uphase, mlib_s32 dfactor, mlib_s32 dphase); mlib_status mlib_SignalReSampleFIRInit_S16S_S16S(void **state, const mlib_f32 *flt, mlib_s32 tap, mlib_s32 ufactor, mlib_s32 uphase, mlib_s32 dfactor, mlib_s32 dphase); mlib_status mlib_SignalReSampleFIRInit_F32_F32(void **state, const mlib_f32 *flt, mlib_s32 tap, mlib_s32 ufactor, mlib_s32 uphase, mlib_s32 dfactor, mlib_s32 dphase); mlib_status mlib_SignalReSampleFIRInit_F32S_F32S(void **state, const mlib_f32 *flt, mlib_s32 tap, mlib_s32 ufactor, mlib_s32 uphase, mlib_s32 dfactor, mlib_s32 dphase); DESCRIPTION
Each of these functions allocates memory for the internal state structure and converts the parameters into an internal representation for rational sample rate conversion with FIR filtering between upsampling and downsampling. PARAMETERS
Each of the functions takes the following arguments: state Internal state structure. flt Filter coefficient array, two-channel interleaved in the cases of stereo. tap Taps of the filter. ufactor Factor by which to upsample. uphase Phase in upsampling. 0 <= uphase < ufactor. dfactor Factor by which to downsample. dphase Phase in downsampling. 0 <= dphase < dfactor. RETURN VALUES
Each of the functions returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_SignalReSampleFIR_S16_S16_Sat(3MLIB), mlib_SignalReSampleFIR_F32_F32(3MLIB), mlib_SignalReSampleFIRFree_S16_S16(3MLIB), mlib_SignalRe- SampleFIRFree_F32_F32(3MLIB), attributes(5) SunOS 5.10 9 Nov 2004 mlib_SignalReSampleFIRInit_S16_S16(3MLIB)
All times are GMT -4. The time now is 04:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy