If you have a find with -newerXY you can specify the time directly without a marker file, deriving the date-time in essentially the same way. The '' between %m and %d is to keep it from being an SCCS metastring. A file last modified right at the second of midnight might get moved, so then you need yesteday at 235959 from a later version of date.
Last edited by DGPickett; 10-15-2014 at 06:08 PM..
Hi,
I want to move only files not subdirectories.
I issued the below command, but subdirectories are also gets moved.
mv /ucrrpd/input/upload/ /ucsspd/common/history/
In the above case, all subdirectories in /ucrrpd/input/upload/ also gets moved to /ucsspd/common/history/
I want to... (1 Reply)
I have list of files named file_username_051208_025233.log. Here 051208 is the date and 025233 is the time.I have to run thousands of files daily.I want to put all the files depending on the date of running into a date directory.Suppose if we run files today they should put into 05:Dec:08... (3 Replies)
Hi I have made a shell script which moves files from a trash bin back to the original directory and also has the option to restoring the file to a directory that is specified by the user. The restoring it to the original directory is working fine, the restoring it to a specified directory is now.... (2 Replies)
Please do help me out with this. I have to write the following script.
There is a directory named "storage_directory" and it has hundreds of files in it. My script has to move each file from the storage_directory to "temp_directory" After moving each file, it has to create a log of the File... (4 Replies)
Hi All,
i need to move all files in a directory to some other directory and need to archive them,,,
Ex.. Source_Path/my_directory/
files in it are... acw.csv
123.txt
bge.dat etc ..and we dont know how many files does my_directory contains and all are with different extensions ..so i need... (6 Replies)
Hi,
Could you please assist how to move the gz files which are older than the 90 days from one folder to another folder ,before that it need to check the file system named "nfs" if size is less than 90 or not. If size is above 90 then it shouldn't perform file move and exit the script throwing... (4 Replies)
I have this shell script which i am going to package into an application:
cd /Users/william/Desktop Cleaning; mkdir "date"; cp ~/Desktop/* ~/"date";
how would i point to the directory with the name unknown to cp? (2 Replies)
Discussion started by: ws1
2 Replies
LEARN ABOUT DEBIAN
gd_eof
gd_eof(3) GETDATA gd_eof(3)NAME
gd_eof -- report the number of samples in a dirfile field
SYNOPSIS
#include <getdata.h>
off_t gd_eof(DIRFILE *dirfile, const char *field_code);
DESCRIPTION
The gd_eof() function queries a dirfile(5) database specified by dirfile and returns the sample number of the end-of-field marker for the
vector field given by field_code. This is effectively the total number of samples available for the field, including any frame offset.
The caller should not assume that this is equivalent (when accounting for the samples-per-frame of the indicated field) to the number of
frames in the database returned by gd_nframes(3), nor even that the end-of-field marker falls on a frame boundary.
For a RAW field, the end-of-field marker occurs immediately after the last datum in the data file associated with the field. For other
field types, the end-of-field marker is equivalent to the end-of-field marker closest to the start of the dirfile of any of the field in-
puts. The special field INDEX has no end-of-field marker.
The end-of-field marker for a field containing no data is in the same location as, or before, its beginning-of-field marker (see
gd_bof(3)). For a RAW field, the difference between the locations of the beginning- and end-of-field markers indicates the number of sam-
ples of data actually stored on disk.
The dirfile argument must point to a valid DIRFILE object previously created by a call to gd_open(3).
RETURN VALUE
Upon successful completion, gd_eof() returns the sample number of the end-of-field marker for the indicated field. On error, it returns -1
and sets the dirfile error to a non-zero error value. Possible error values are:
GD_E_BAD_CODE
The field specified by field_code or one of the fields it uses as input was not found in the database.
GD_E_BAD_DIRFILE
The supplied dirfile was invalid.
GD_E_BAD_FIELD_TYPE
The location of the non-existent end-of-field marker for the special field INDEX was requested, possibly as a result of the field
specified by field_code using INDEX as one of its inputs.
GD_E_BAD_REPR
The representation suffix specified in field_code, or in one of its inputs was not recognised.
GD_E_DIMENSION
A scalar field was found where a vector field was expected in the definition of field_code or one of its inputs, or else field_code
itself specified a scalar field.
GD_E_RAW_IO
An attempt to stat(2) the file associated with the field, or one of its input fields, failed.
GD_E_RECURSE_LEVEL
Too many levels of recursion were encountered while trying to resolve field_code. This usually indicates a circular dependency in
field specification in the dirfile.
GD_E_UNKNOWN_ENCODING
The size of the decoded data file associated with the specified field or one of its inputs could not be determined, because its en-
coding scheme was not understood.
GD_E_UNSUPPORTED
The size of the decoded data file associated with the specified field or one of its inputs could not be determined, because its en-
coding scheme was not supported.
The dirfile error may be retrieved by calling gd_error(3). A descriptive error string for the last error encountered can be obtained from
a call to gd_error_string(3).
SEE ALSO dirfile(5), dirfile-encoding(5), gd_open(3), gd_bof(3), gd_error(3), gd_error_string(3), gd_nframes(3)Version 0.7.0 15 October 2010 gd_eof(3)