Sponsored Content
Full Discussion: Find command issue
Top Forums Shell Programming and Scripting Find command issue Post 302894103 by ahamed101 on Monday 24th of March 2014 03:57:14 AM
Old 03-24-2014
find is not that intelligent. It will only list the file that was modified x no of days as per your command.
Are you expecting it to display the content which got added into that file in last 24 hours? I don't think a readymade command is available for that.
You may need to parse the file, provided there is some marker like date or something added in the file to identify per day logs.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

An issue with find command.

Hi all, I have a shell script(ksh) which has the code as follows. ------------------ cd $mydir for i in `find ./ -type f -mtime +$k` do echo $i done ----------------------- And in $mydir , i have some files which have space in theie names like "Case att15". The out put of the... (6 Replies)
Discussion started by: rajugp1
6 Replies

2. UNIX for Dummies Questions & Answers

Issue with find command using links

Hi, Having a simple issue with find command on Sun. The command works fine if the variable is set to the actual filesystem but fails when the variable is set to a link which is pointing to the same filesystem. export DUMPDEST=/oradata1/exports/pbm - Set the variable ... (2 Replies)
Discussion started by: win_vin
2 Replies

3. UNIX for Dummies Questions & Answers

Extrange Find command Issue

Hi all, i'm new at shell scripting world... I'm working on a script for searching old files on a server, this scripts runs with a configuration file wich indicates where to search the files, the script should search for all files that are older than an x qty of days, and the only clue that i have... (9 Replies)
Discussion started by: juanklavera
9 Replies

4. Shell Programming and Scripting

Issue with Find command on Linux

Hi, I am issuing find command below mentioned ways but it givs different count. I don't understand the behaviour. Could any one have any clue? $ find . -mtime -5 -maxdepth 1 -exec ls -lrt {} \; | wc -l 169 $ find . -mtime -5 -maxdepth 1 | wc -l 47 $ find . -mtime -5 -maxdepth 1 | wc -l... (2 Replies)
Discussion started by: siba.s.nayak
2 Replies

5. UNIX for Dummies Questions & Answers

Find command issue

I am currently using below command to get the 1st three characters of a file(PDM). Issue is, when i use find command in root dir, it finds all the files in sub dir also. How to limit the find command search to a given path only(ie: say only find file in apps/cmplus/datamigration/data path... (3 Replies)
Discussion started by: abhi_n123
3 Replies

6. Shell Programming and Scripting

Issue with Find Command

Hi All, I'm a bit new to Linux environment, moderately okay when it comes to Unix AIX. I'm facing an issue while trying to run a simple find command: $ for file in `find . -name *.*` > do > ls $file > done This is throwing the following error: Strangely, a few minutes... (4 Replies)
Discussion started by: adi_2_chaos
4 Replies

7. Linux

find command issue

Hi, I am not root user. I am trying to find the file which has contains pattern "fvsfile" in root directory. If i run the find cmd then i got permission denied and all the files are listed include pattern files. i cant get file name yet find . print | xargs grep -i "fvsfile" I want... (2 Replies)
Discussion started by: Mani_apr08
2 Replies

8. Shell Programming and Scripting

Performance issue while using find command

Hi, I have created a shell script for Server Log Automation Process. I have used find xargs grep command to search the string. for Example, find -name | xargs grep "816995225" > test.txt . Here my problem is, We have lot of records and we want to grep the string... (4 Replies)
Discussion started by: nanthagopal
4 Replies

9. Shell Programming and Scripting

Find command issue

Guys, Here is my requirement.. Sample.cfg file="*log.gz *txt.gz" sample.sh #!/bin/sh . $HOME/Sample.cfg find . -name "$file" -mtime +20 -exec ls -la {} \; Its not finding the given *log.gz and txt.gz files. Could anyone please help me? (8 Replies)
Discussion started by: AraR87
8 Replies

10. Shell Programming and Scripting

Issue in Find and mv command

Hi I am using the below code to find mv the files. Files are moving to the Target location as expected but find is displaying some errors like below. find ./ -name "Archive*" -mtime +300 -exec mv {} /mnt/X/ARC/ \; find: `./Archive_09-30-12': No such file or directory find:... (6 Replies)
Discussion started by: rakeshkumar
6 Replies
IPSEC_OPENAC(8) 					      System Manager's Manual						   IPSEC_OPENAC(8)

NAME
ipsec openac - Generation of X.509 attribute certificates SYNOPSIS
ipsec openac [ --help ] [ --version ] [ --optionsfrom filename ] [ --quiet ] [ --debug level ] [ --days days ] [ --hours hours ] [ --startdate YYYYMMDDHHMMSSZ ] [ --stopdate YYYYMMDDHHMMSSZ ] --cert certfile --key keyfile [ --password password ] --usercert certfile --groups attr1,attr2,... --out filename DESCRIPTION
openac is intended to be used by an Authorization Authority (AA) to generate and sign X.509 attribute certificates. Currently only the inclusion of one ore several group attributes is supported. An attribute certificate is linked to a holder by including the issuer and serial number of the holder's X.509 certificate. OPTIONS
--help display the usage message. --version display the version of openac. --optionsfrom filename adds the contents of the file to the argument list. If filename is a relative path then the file is searched in the directory /etc/openac. --quiet By default openac logs all control output both to syslog and stderr. With the --quiet option no output is written to stderr. --days days Validity of the X.509 attribute certificate in days. If neiter the --days nor the --hours option is specified then a default valid- ity interval of 1 day is assumed. The --days option can be combined with the --hours option. --hours hours Validity of the X.509 attribute certificate in hours. If neiter the --hours nor the --days option is specified then a default valid- ity interval of 24 hours is assumed. The --hours option can be combined with the --days option. --startdate YYYYMMDDHHMMSSZ defines the notBefore date when the X.509 attribute certificate becomes valid. The date YYYYMMDDHHMMSS must be specified in UTC (Zulu time). If the --startdate option is not specified then the current date is taken as a default. --stopdate YYYYMMDDHHMMSSZ defines the notAfter date when the X.509 attribute certificate will expire. The date YYYYMMDDHHMMSS must be specified in UTC (Zulu time). If the --stopdate option is not specified then the default notAfter value is computed by adding the validity interval speci- fied by the --days and/or --days options to the notBefore date. --cert certfile specifies the file containing the X.509 certificate of the Authorization Authority. The certificate is stored either in PEM or DER format. --key keyfile specifies the encrypted file containing the private RSA key of the Authoritzation Authority. The private key is stored in PKCS#1 format. --password password specifies the password with which the private RSA keyfile defined by the --key option has been protected. If the option is missing then the password is prompted for on the command line. --usercert certfile specifies file containing the X.509 certificate of the user to which the generated attribute certificate will apply. The certificate file is stored either in PEM or DER format. --groups attr1,attr2 specifies a comma-separated list of group attributes that will go into the X.509 attribute certificate. --out filename specifies the file where the generated X.509 attribute certificate will be stored to. Debugging openac produces a prodigious amount of debugging information. To do so, it must be compiled with -DDEBUG. There are several classes of debugging output, and openac may be directed to produce a selection of them. All lines of debugging output are prefixed with ``| '' to distinguish them from error messages. When openac is invoked, it may be given arguments to specify which classes to output. The current options are: --debug level sets the debug level to 0 (none), 1 (normal), 2 (more), 3 (raw), and 4 (private), the default level being 1. EXIT STATUS
The execution of openac terminates with one of the following two exit codes: 0 means that the attribute certificate was successfully generated and stored. 1 means that something went wrong. FILES
/etc/openac/serial serial number of latest attribute certificate SEE ALSO
The X.509 attribute certificates generated with openac can be used to enforce group policies defined by ipsec.conf(5). Use ipsec_auto(8) to load and list X.509 attribute certificates. For more information on X.509 attribute certificates, refer to the following IETF RFC: RFC 3281 An Internet Attribute Certificate Profile for Authorization HISTORY
The openac program was originally written by Ariane Seiler and Ueli Galizzi. The software was recoded by Andreas Steffen using strongSwan's X.509 library and the ASN.1 code synthesis functions written by Christoph Gysin and Christoph Zwahlen. All authors were with the Zurich University of Applied Sciences in Winterthur, Switzerland. BUGS
Bugs should be reported to the <users@lists.strongswan.org> mailing list. 22 September 2007 IPSEC_OPENAC(8)
All times are GMT -4. The time now is 03:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy