hello! is there a way for me to use the chmod command to change permissions for several files all at once -based on the fact that these files were all most recently modified TODAY ?
I can't use a wildcard on their filenames because the filenames are varied. But I was hoping I could somehow do... (2 Replies)
I have been toying around with a script that will copy all files altered in a development directory over to a testing directory and have been trying to construct the command to meet my needs.
Basically I am using find in a directory to see what files have changed over the past 24 hours. Then if... (4 Replies)
Hi,
Can you guys tell me how do i find the most recently changed files, say an hour before, few hours before, a day before etc....
Thanks!!!! (3 Replies)
Hi
I have the following files
A320_ZONAL_v24_-_AMM_Suffix_jess_2011-05-31.xls Jun 10 17:21
A320_ZONAL_v24_-_AMM_Suffix_jess_.xls Nov 10 17:21
A320_ZONAL_v24_-_AMM_Suffix_jess_2011-03-31.xls Nov 23 20:21
And I need only the more recent one using UNIX timestamp... (2 Replies)
Number of files will get created in a folder automatically daily.. so i hav to delete the older files other than the recently added 5 files..
Could u help me through this..?? (5 Replies)
Hello,
I wanted to
list all files in subdirectories which are modifiled recently. need to display all files with full details like hpw it display with ls -l ( date, size,..)
Thanks
Bala (3 Replies)
Hi all, I am a bit of a beginner with shell scripting..
What I want to do is merge two drives, for example moving all data from X to Y.
If a file in X doesn't exist in Y, it will be moved there.
If a file in X also exists in Y, the most recently modified file will be moved to (or kept) in... (5 Replies)
Hello,
I am attempting to find and copy the two most recently added files to a specific directory, that fit a specific format.
I was able to find the command to list the two most recently added files in directory: ls -1t | head -n 2 The command lists the two files names in a vertical list,... (11 Replies)
Hi,
I have to check the files in another server using sftp to do that, below is the code i am going with
#!/bin/bash
export SRC_FOLDER=$1
export ARC_FOLDER=$2
HOST=as07u3456
USER=relfag
sftp ${USER}@${HOST} <<EOF
cd $SRC_FOLDER/DSCOR
ls
bye
EOF
echo "done"
whatever the files i... (8 Replies)
Discussion started by: ursrami
8 Replies
LEARN ABOUT DEBIAN
zip_fopen_index_encrypted
ZIP_FOPEN_ENCRYPTED(3) Library Functions Manual ZIP_FOPEN_ENCRYPTED(3)NAME
zip_fopen_encrypted , - .Nm zip_fopen_index_encrypted open encrypted file in zip archive for reading
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
struct zip_file * zip_fopen_encrypted(struct zip *archive, const char *fname, int flags, const char *password);
struct zip_file * zip_fopen_index_encrypted(struct zip *archive, zip_uint64_t index, int flags, const char *password);
DESCRIPTION
The zip_fopen_encrypted function opens the encrypted file name fname in archive using the password given in the password argument. The
flags argument are the same as for zip_fopen(3).
The zip_fopen_index_encrypted function opens the file at position index, see zip_fopen_index(3). These functions are called automatically
by zip_fopen(3); you only need to call them if you want to specify a non-default password (see zip_set_default_password(3) ).
RETURN VALUES
Upon successful completion, a
struct zip_file pointer is returned. Otherwise, NULL is returned and the error code in archive is set to indicate the error.
ERRORS
[ZIP_ER_NOPASSWD] No password was provided.
The function zip_fopen_encrypted may also fail and set for any of the errors specified for the routine zip_fopen(3).
The function zip_fopen_index_encrypted may also fail and set for any of the errors specified for the routine zip_fopen_index(3).
SEE ALSO libzip(3), zip_fclose(3), zip_fopen(3), zip_fread(3), zip_get_num_entries(3), zip_name_locate(3)AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH February 14, 2011 ZIP_FOPEN_ENCRYPTED(3)