Hello,
I currently generate a file every 15 minutes for 12 hours a day. I would like to clean the directory on a daily basis. I only want to keep the latest 3 versions for the last 4 days in the directory.
Any suggestions?
Thanks,
Barbara (7 Replies)
HI All,
I have recuirement to purge the files in a directory . In that directory i an having many sub-directory .
When i use find command like
find ~/work/test/insert -name "*.*" -mtime +12
it is listing the file not accesed before 12 , It also takes the subdirectories inside the... (7 Replies)
I want the output of the find command to be printed and also the total files found by it. Can someone help in this.
Obviously $ find . -type f | wc -l will not output the files found but only the count. I want both. There can be millions and trillions of files so dont want the output of find... (3 Replies)
I'm new to shell scripting... i have been given a task.. can any one help in this regard....
1) Check hourly for files in <destination-path><destination-file-template><destination-file-suffix> for files older than <destination-file-retention> days and purge. It should then check... (1 Reply)
Hi Friends,
I have an urgent requirement.
I have many files huge in size which has occupied almost the entire disk space. The files are not being moved to the archived folder.
But at present I need to purge those files, new to shell scripting, not sure how to proceed.
Eg.
Directory... (3 Replies)
I have a sorted file like:
Apple 3
Apple 5
Apple 8
Banana 2
Banana 3
Grape 31
Orange 7
Orange 13
I'd like to search $1 and if $1 is not the same as $1 in the previous row print that row and print the number of times $1 was found.
so the output would look like:
Apple 8 3
Banana... (2 Replies)
Hi Friends,
Very new in Unix and i got a requirement like writing a script and schedule it, so that it removes 30 days old files from all the log locations of a unix box.
Suppose i have a unix server ltbamdev1 and in this server i have a mount point opt/bam. In this mount point i have 3... (1 Reply)
Hi i know how to get no of files in some particular folder by following command which includes today and previous days files also
ls |wc -l
but i needed a command in which i can list previous one or two days files only. (4 Replies)
hi All, Any one answer my requirement.
I have source location
src_dir="/home/oracle/arun/IRMS-CM"
My Target location
dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct"
my source text files check with below example.text file content
$fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies
LEARN ABOUT OPENSOLARIS
libgnutls-config
libgnutls-config(1) User Commands libgnutls-config(1)NAME
libgnutls-config - helper script for building with libgnutls
SYNOPSIS
libgnutls-config [--version] [--prefix=dir] [--cflags] [--libs] [--exec-prefix=dir]
DESCRIPTION
The libgnutls-config tool is used to determine the compiler and linker flags that should be used to compile and link programs that use the
libgnutls library.
OPTIONS
The following options are supported:
--cflags Print the compiler flags that are necessary to compile a program using the specified library.
--exec-prefix=dir If specified, use dir instead of the exec installation prefix that the library was built with, when computing the
output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options.
--libs Print the linker flags that are necessary to link with the specified library.
--prefix=dir If specified, use dir instead of the installation prefix that the library was built with, when computing the output
for the --cflags and --libs options. This option must be specified before any --libs or --cflags options. This
option is also used for the exec prefix if the --exec-prefix option is not specified.
--version Print the currently installed version of the library on the standard output.
EXAMPLES
Example 1: Getting the libgnutls library version
example% libgnutls-config --version
Example 2: Determining the libraries required to link with the libgnutls library
example% libgnutls-config --libs
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/libgnutls-config Executable for libgnutls helper script
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnutls-devel |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO pkg-config(1), libgnutls(3), libgnutlsxx(3), attributes(5)
Written by Jeff Cai, Sun Microsystems Inc., 2008.
SunOS 5.11 10 Jan 2008 libgnutls-config(1)