Sponsored Content
Operating Systems Linux Red Hat Move files of a certain year to other directory Post 302415487 by Franklin52 on Thursday 22nd of April 2010 04:24:52 PM
Old 04-22-2010
Quote:
Originally Posted by codenjanod
That was a bad example as those were results, with the date pre-pended to the existing file names.
The date in the filename is not really needed, as long as the files for a specific year is moved to the correct folder.

Better file examples might be:

Code:
Apr 16 12:36 q1234--1271413803.344399.WAV
Apr 16 12:32 q1234--1271413847.344480.WAV
Apr 22 09:22 OUT1391--1271920802.559720.WAV
Apr 22 09:29 OUT1391--1271921281.560443.WAV
Apr 22 09:34 OUT1391--1271921538.560845.WAV


Thanks
How can you recognize the year of the files?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Move all files in a directory tree to a signal directory?

Is this possible? Let me know If I need specify further on what I am trying to do- I just want to spare you the boring details of my personal file management. Thanks in advance- Brian- (2 Replies)
Discussion started by: briandanielz
2 Replies

2. UNIX for Dummies Questions & Answers

Move files based on year

I have a directory which has crores of files since from 2003. I want to move only the 2003 files to another directory. Please help in doing this. Thanks (1 Reply)
Discussion started by: IHK
1 Replies

3. Shell Programming and Scripting

Move files based on year of creation

Hi All, I have a directory which has crores of files since from 2003 till now. I want to move only the 2003 files to another directory. Please help. Thanks (2 Replies)
Discussion started by: IHK
2 Replies

4. UNIX for Dummies Questions & Answers

Move files based on year

Hi All, I have a directory which has crores of files since from 2003. I want to move ony the 2003 files to another directory. Please help (9 Replies)
Discussion started by: IHK
9 Replies

5. UNIX for Dummies Questions & Answers

move all 2008 year's file to destination directory

I am trying to move file created/modified in 2008 year to <new directory>. But trapped badly in Xargs {}. Looks like mv is not getting destination file properly. It assumes source file s to be destination directory n gives me erroir. "Target must be a directory" Run- #/home/mktrisk: find... (4 Replies)
Discussion started by: kedar.mehta
4 Replies

6. UNIX for Dummies Questions & Answers

Zip all files in a directory and move to another directory

Hi, need to zip all files in a directory and move to another directory after the zip.. i am using this one but didnt help me... zip -r my_proj_`date +%Y%m%d%H%MS`.zip /path/my_proj mv in_proj_`date +%Y%m%d%H%M%S`.zip /path/source/ i am trying to zip all the files in my_proj... (0 Replies)
Discussion started by: dssyadav
0 Replies

7. Shell Programming and Scripting

List files with date, create directory, move to the created directory

Hi all, i have a folder, with tons of files containing as following, on /my/folder/jobs/ some_name_2016-01-17-22-38-58_some name_0_0.zip.done some_name_2016-01-17-22-40-30_some name_0_0.zip.done some_name_2016-01-17-22-48-50_some name_0_0.zip.done and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies

8. UNIX for Dummies Questions & Answers

How to move gz files from one source directory to destination directory?

Hi All, Daily i am doing the house keeping in one of my server and manually moving the files which were older than 90 days and moving to destination folder. using the find command . Could you please assist me how to put the automation using the shell script . ... (11 Replies)
Discussion started by: venkat918
11 Replies

9. Shell Programming and Scripting

How Create new directory and move files to that directory.?

Hi All, We have main directory called "head" under this we have several sub directories and under these directories we have sub directories. My requirement is I have to find the SQL files which are having the string "procedure" under "head" directory and sub directories as well. And create... (14 Replies)
Discussion started by: ROCK_PLSQL
14 Replies
GSM_OPTION(3)						     Library Functions Manual						     GSM_OPTION(3)

NAME
gsm_option -- customizing the GSM 06.10 implementation SYNOPSIS
#include "gsm.h" int gsm_option(handle, option, valueP); gsm handle; int option; int * valueP; DESCRIPTION
The gsm library is an implementation of the final draft GSM 06.10 standard for full-rate speech transcoding, a lossy speech compression algorithm. The gsm_option() function can be used to set and query various options or flags that are not needed for regular GSM 06.10 encoding or decoding, but might be of interest in special cases. The second argument to gsm_option specifies what parameter should be changed or queried. The third argument is either a null pointer, in which case the current value of that parameter is returned; or it is a pointer to an integer containing the value you want to set, in which case the previous value will be returned. The following options are defined: GSM_OPT_VERBOSE Verbosity level. This option is only supported if the library was compiled with debugging turned on, and may be used by developers of compression algorithms to aid debugging. The verbosity level can be changed at any time during encoding or decoding. GSM_OPT_FAST Faster compression algorithm. This implementation offers a not strictly standard-compliant, but faster compression algorithm that is compatible with the regular method and does not noticably degrade audio quality. The value passed to gsm_option(handle, GSM_OPT_FAST, & value) functions as a boolean flag; if it is zero, the regular algorithm will be used, if not, the faster version will be used. The availability of this option depends on the hardware used; if it is not available, gsm_option will return -1 on an attempt to set or query it. This option can be set any time during encoding or decoding. GSM_OPT_LTP_CUT Enable, disable, or query the LTP cut-off optimization. During encoding, the search for the long-term correlation lag forms the bottleneck of the algorithm. The ltp-cut option enables an approximation that disregards most of the samples for purposes of finding that correlation, and hence speeds up the encoding at a noticable loss in quality. The value passed to gsm_option(handle, GSM_OPT_LTP_CUT, & value) turns the optimization on if nonzero, and off if zero. This option can be set any time during encoding or decoding; it will only affect the encoding pass, not the decoding. GSM_OPT_WAV49 WAV-style byte ordering. A WAV file of type #49 contains GSM 06.10-encoded frames. Unfortunately, the framing and code ordering of the WAV version are incompatible with the native ones of this GSM 06.10 library. The GSM_OPT_WAV49 option turns on a different packing algorithm that produces alternating frames of 32 and 33 bytes (or makes it consume alternating frames of 33 and 32 bytes, note the opposite order of the two numbers) which, when concatenated, can be used in the body of a WAV #49 frame. It is up to the user program to write a WAV header, if any; neither the library itself nor the toast program produce complete WAV files. The value passed to gsm_option(handle, GSM_OPT_WAV49, & value) functions as a boolean flag; if it is zero, the library's native framing algorithm will be used, if nonzero, WAV-type packing is in effect. This option should be used before any frames are encoded. Whether or not it is supported at all depends on a compile-time switch, WAV49. Both option and compile time switch are new to the library as of patchlevel 9, and are considerably less tested than the well-worn rest of the it. Thanks to Jeff Chilton for the detective work and first free implementation of this version of the GSM 06.10 encoding. GSM_OPT_FRAME_CHAIN Query or set the chaining byte. Between the two frames of a WAV-style encoding, the GSM 06.10 library must keep track of one half-byte that is technically part of the first frame, but will be written as the first four bits of the second. This half-byte are the lowest four bits of the value returned by, and optionally set by, gsm_option(handle, GSM_OPT_FRAME_CHAIN, & value) This option can be queried and set at any time. GSM_OPT_FRAME_INDEX Query or set the current frame's index in a format's alternating list of frames. The WAV #49 framing uses two alternating types of frames. Which type the next GSM-coded frame belongs to can be queried, or, when decoding, announced, using gsm_option(handle, GSM_OPT_FRAME_INDEX, & value) For WAV-style framing, the value should be 0 or 1; the first frame of an encoding has an index of 0. At library initialization, the index is set to zero. The frame index can be queried and set at any time. Used in combination with the GSM_OPT_FRAME_CHAIN, option, it can be used to position on arbitrary GSM frames within a format like WAV #49 (not accounting for the lost internal GSM state). RETURN VALUE
gsm_option() returns -1 if an option is not supported, the previous value of the option otherwise. BUGS
Please direct bug reports to jutta@cs.tu-berlin.de and cabo@cs.tu-berlin.de. SEE ALSO
toast(1), gsm(3), gsm_explode(3), gsm_print(3) GSM_OPTION(3)
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy