hi all,
I need to find out the last 2 modified files in a folder.There is some way by which,we can check the timestamp and find out..??please help this is urgent.
Thanks in Advance
Anju (3 Replies)
Hello all,
I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written.
I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Hi friends..
I hav a problem....
I dont know how to check .c files exists r not in a folder using IF in C shell script
actually i tried like this
if(=~ *.c)
even though some .c files or there in the current folder..it is not entering int o the if control statement...... (17 Replies)
Hi all,
*I use Uwin and Cygwin emulator.
I´m trying to search for all text files in the current folder (C/Files) and its sub folders using
find -depth -name "*.txt"
The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
Hi,
I want to process all input files available into folder (C:\ShellPrg\InputFile\) Input files are abc.CSV , XYZ.zip (zip of CSV file), PQR.gz (zip of CSV file).
I want to check the extension of file, If its .zip/.gz then need to unzip the file as .CSV
I want to parse line by line of... (2 Replies)
I have a folder (C:\shellprg\input\) containing .CSV, .zip, .gz files.
1] I want to find all .zip/.gz files from folder (C:\shellprg\input\).
2] unzip/uncompress files into the same folder (C:\shellprg\input\) through shell script.
I am using below commands for unzip files,
unzip <filename>... (2 Replies)
Hello, I'm trying to write a script which is listing files based on different preferences, like filetype or permissions. All is fine, except for one: I want to list files in /home which has a different owner than the home directory it is in.
Here is an example:
/home/UserA is the directory, and... (10 Replies)
Hello All
A similar question like this was asked before but I need to change part of the question.
I've two folders, Folder A contains some image files in 150 subfolders;
Folder B contains text files in 350 subfolders.
All image files in Folder A have the same filename as the text... (5 Replies)
Hi All,
I am a beginner in this and trying to write a shell script in linux which will :
1. Ask for a file name and check if its exists.
2. If file exists only then it will ask for the new target folder, after entering target folder name it will check if it exists.
3. If target folder... (3 Replies)
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
LEARN ABOUT HPUX
cachefslog
cachefslog(1M)cachefslog(1M)NAME
cachefslog - Cache File System logging
SYNOPSIS
logfile| cachefs_mount_point
DESCRIPTION
The command is used to enable or disable logging for a cachefs_mount_point. When the command is used without any options, it displays the
logfile. The logfile contains information on the operation performed on a cachefs_mount_point and statistics used by to get the working
set size of cache directory. The specified logfile will contain information for all the CacheFS mount points using the same cache direc-
tory. A logfile and a cache directory have a 1-to-1 mapping; that is, even if a cache directory is removed and recreated with the same
name, the logfile used in the previous instance of the cache directory cannot be reused with the new cache directory.
Enabling logging may have performance impact, even if minimal, on the operations for all the CacheFS mount points using the same cache
directory. The command is mainly used for debugging purposes.
Options
The following options are supported. You must be a superuser to use the and options.
Specify the logfile to be used.
Halt logging.
Operands
cachefs_mount_point
A mount point of a cache file system.
RETURN VALUE
returns the following values:
Success.
non-zero An error occurred.
EXAMPLES
1. Checking the logging of a directory.
This example checks if the CacheFS file system is being logged:
2. Changing the logfile.
This example changes the logfile of to
3. Verifying the change of a logfile.
This example verifies the change of the previous example:
4. Halting the logging of a directory.
This example halts logging for the directory:
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO cachefsstat(1M), cachefswssize(1M), cfsadmin(1M).
cachefslog(1M)