Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Find command and use of wildcards Post 302930812 by MadeInGermany on Wednesday 7th of January 2015 12:55:09 PM
Old 01-07-2015
Code:
find /data/Engine \
  \( \
    -type d \( \
      -name .snapshot -prune -o \
      -path "/data/Engine/*/CA[DE]" \
    \) -o \
    -name ".*.case" \
  \) -prune -o \
  -mtime +365 -print0 -fls /data/Engine/deleted_files_$DATE.txt -exec rm -f '{}' \;

I am not sure about the -name ".*.case"; what's your intentention?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

command find returned bash: /usr/bin/find: Argument list too long

Hello, I create a file touch 1201093003 fichcomp and inside a repertory (which hava a lot of files) I want to list all files created before this file : find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long but i make a filter all... (1 Reply)
Discussion started by: yacsil
1 Replies

2. Shell Programming and Scripting

using wildcards in this perl command

Hi there, is it possible to use wild cards in this statement ssh $remote_server 'perl -pi -e "s,EXP_SERIAL_19b8be67=\"\",EXP_SERIAL_`hostid`=\"UNKNOWN\"," /var/myfile' This command works fine but the bit in bold (the 8 character hostid) will not always be 19b8be67 so I was hoping I could... (2 Replies)
Discussion started by: hcclnoodles
2 Replies

3. Shell Programming and Scripting

Little bit weired : Find files in UNIX w/o using find or where command

Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same. Thanks in advance. Regards Jatin Jain (10 Replies)
Discussion started by: jatin.jain
10 Replies

4. UNIX for Dummies Questions & Answers

how to find a file named vijay in a directory using find command

I need to find whether there is a file named vijay is there or not in folder named "opt" .I tried "ls *|grep vijay" but it showed permission problem. so i need to use find command (6 Replies)
Discussion started by: amirthraj_12
6 Replies

5. Shell Programming and Scripting

Find string in list with wildcards

I need to add code to a shell script to find out if a string matches any item in a list, where the list can contain a wildcard character. For example, if I have the following list: ok_versions="03-02-4, 04-01-*" Then I want to compare a particular string to see if it matches any item in... (11 Replies)
Discussion started by: Johan III
11 Replies

6. Linux

Simplified find command to find multiple file types

Hi, I'm using the following command to find the multiple requierd file types and its working fine find . -name "*.pl" -o -name "*.pm" -o -name "*.sql" -o -name "*.so" -o -name "*.sh" -o -name "*.java" -o -name "*.class" -o -name "*.jar" -o -name "*.gz" -o -name "*.Z" -type f Though... (2 Replies)
Discussion started by: vickramshetty
2 Replies

7. Homework & Coursework Questions

Need help using find or locate with wildcards

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: List all files in ~c12100 directory beginning with "BOZO" that end with either "123" or "456" 2. Relevant... (3 Replies)
Discussion started by: ScarletRavin
3 Replies

8. UNIX for Dummies Questions & Answers

Help with rm command with wildcards

Hello everyone. My first time posting here. I have a question that may seem very insignificant to some but is one that I've been trying to address for the past several days (haven't had any luck looking online). I'm trying to clean a directory by removing old files that we no longer need.... (2 Replies)
Discussion started by: galileo1
2 Replies

9. Shell Programming and Scripting

Date with Wildcards in Command

I have the following script (parts from help on this forum, thanks y'all): #!/usr/bin/ksh date '+%m %d %Y' | { read MONTH DAY YEAR DAY=`expr "$DAY" - 1` case "$DAY" in 0) MONTH=`expr "$MONTH" - 1` case "$MONTH" in 0) ... (5 Replies)
Discussion started by: he204035
5 Replies

10. UNIX for Dummies Questions & Answers

[Solved] Wildcards used in find, ls and grep commands

Platforms : Solaris 10 and RHEL 5.6 I always get double quotes , single quotes and asteriks mixed up for find, ls and grep commands. The below commands retrieve the correct results. But , unders stress , I get all these mixed up :mad: .So, i wanted to get a clear picture. Please check if... (7 Replies)
Discussion started by: John K
7 Replies
openssl(5)						Standards, Environments, and Macros						openssl(5)

NAME
openssl - OpenSSL cryptographic & Secure Sockets Layer toolkit DESCRIPTION
OpenSSL is a crypography toolkit that implements the Secure Sockets Layer (SSLv2/v3) and Transport Layer Security (TLS v1) network proto- cols. The following features are omitted from the binaries for issues including but not limited to patents, trademark, and US export restric- tions: MDC2, RC3, RC5, IDEA, ECC, Dynamic Engine Loading, CSWIFT Engine, nCipher Engine, Atalla Engine, NURON Engine, UBSEC Engine, AEP Engine, Sureware Engine, and 4758_CCA Engine. A new PKCS#11 engine has been included with ENGINE name "pkcs11". The PKCS#11 engine is configured to use the Solaris Cryptographic Framework. See cryptoadm(1M) for configuration information. Due to requirements of the PKCS#11 standard regarding fork(2) behavior, some applications that use the OpenSSL EVP interfaces and fork() with active crypto contexts might experience unexpected behavior. To build an OpenSSL application, use the following cc command line options: cc [ flag... ] file... -I/usr/sfw/include -lcrypto -lssl -L/usr/sfw/lib -R/usr/sfw/lib [ library... ] Extensive additional documentation for OpenSSL modules is available in the /usr/sfw/share/man directory. This documentation can be viewed with man(1) by including /usr/sfw/share/man in the MANPATH environment variable. Running catman(1M) on the OpenSSL manual pages is not sup- ported. To view the license terms, attribution, and copyright for OpenSSL, see /var/sadm/pkg/SUNWopensslr/install/copyright. ATTRIBUTES
See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWopensslr, SUNWopenssl | +-----------------------------+-----------------------------+ |Interface Stability |External | +-----------------------------+-----------------------------+ SEE ALSO
cryptoadm(1M), libpkcs11(3LIB), attributes(5) SunOS 5.10 22 Nov 2004 openssl(5)
All times are GMT -4. The time now is 06:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy