Sponsored Content
Operating Systems Solaris Look for distinct files under a directory matching a pattern Post 302461784 by anthonyvbyrne on Tuesday 12th of October 2010 08:32:54 AM
Old 10-12-2010
Are you looking for files that contain 'java' or files called 'java' ?

If you are looking for a file that contains the string 'Java' is it preceeded or followed by a 'space' or a 'nl'

If you are trying to match 'java' and it comes back with 'java23' and/or 'javaxyx', both of those are a valid match.

if you are lookinf for a file name use 'find -name java'
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

rm core files and pattern matching

Hi, I am trying to delete a load of core files, but make sure I only delete core files. The system I am using has many files with core in the name, so I obviously can not simply search for "core". I have tried using the 'find' command with pattern matching via , and know that his is the way... (3 Replies)
Discussion started by: littleIdiot
3 Replies

2. UNIX for Dummies Questions & Answers

Find files matching a pattern

Hi, I am writing a BASH shell script. I would like to count all the files in the CURRENT directory matching a specific pattern. Could someone suggest the best/simplest way to do this. I have thought of these solutions (for simplicity the pattern is all files starting with A): ls -1 *A | wc -l... (5 Replies)
Discussion started by: msb65
5 Replies

3. UNIX for Dummies Questions & Answers

copying a pattern of files in one directory into other with new pattern names...

Hi, I have to copy a set of files abc* in /path/ to /path1/ as abc*_bkp. The list of files appear as follows in /path/: abc1 xyszd abc2 re2345 abcx .. . abcxyz I have to copy them (abc* files only) into /path1/ as: abc1_bkp abc2_bkp abcx_bkp .. . (6 Replies)
Discussion started by: new_learner
6 Replies

4. UNIX for Dummies Questions & Answers

to break a file into 2 files after matching a pattern.

Hi, i need to break a file into 2 files afetr matching a pattern for ex. there is a fil, file .txt which contains here i need to look for mat $ demon if it matches then i need to transfer the data into another file till the line in which a "d6s" comes,and i have to delete tat line... (3 Replies)
Discussion started by: manit
3 Replies

5. UNIX for Dummies Questions & Answers

find files NOT matching name pattern

Hi, I have following files in my directory: /TESTDONTDEL> ls -alt total 14 drwxr-xr-x 2 oracle dba 1024 May 15 06:30 . -rw-r--r-- 1 oracle dba 40 May 15 06:30 exception.txt -rw-r--r-- 1 oracle dba 19 May 15 06:22 ful_1234_test1.txt -rw-r--r-- 1... (2 Replies)
Discussion started by: sagarparadkar
2 Replies

6. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurence of a specific word

Hello, I have several files in a specific directory. A specific string in one file can occur in another files. If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string. Example. file1 ShortName "Blue... (2 Replies)
Discussion started by: premier_de
2 Replies

7. Shell Programming and Scripting

Removing files matching a pattern

I am on ubuntu 11.10 using bash scripts I want to remove all files matching a string pattern and I am using the following code find . -name "*$pattern*" -exec rm -f {} \;I have encountered a problem when $pattern is empty. In this case all my files in my current directory were deleted. This... (3 Replies)
Discussion started by: kristinu
3 Replies

8. Shell Programming and Scripting

Help with Pattern Matching and replacement in Gz files

Hi Techies, I need a help in finding junk characters and remove them from a Datafile. we have a file and it had crores of records like below SGSN_MCC_MNC=01150 but sometime due to the issue with sending server we are getting some junk characters in the middle of data like below ... (6 Replies)
Discussion started by: mahi_mayu069
6 Replies

9. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurrence of a specific word

he following are the files available in my directory RSK_123_20141113_031500.txt RSK_123_20141113_081500.txt RSK_126_20141113_041500.txt RSK_126_20141113_081800.txt RSK_128_20141113_091600.txt Here, "RSK" is file prefix and 123 is a code name and rest is just timestamp of the file when its... (7 Replies)
Discussion started by: kridhick
7 Replies

10. Shell Programming and Scripting

Find distinct files in directory

Hi All, I am working on one of the script developement for my project, where I need to find the distinct types of files from given directory based on pattern provided. for e.g. directory listing is : abc123.dat.20141212_021012 abc123.dat.20141312_041012 abc123.dat.20141112_031012... (5 Replies)
Discussion started by: freakabhi
5 Replies
STATCVS(1)						      General Commands Manual							STATCVS(1)

NAME
statcvs - CVS Repository statistic analysis tool, written in Java SYNOPSIS
cvs log > cvs-logfile.log statcvs [ options ] path/to/cvs-logfile.log path/to/checkout DESCRIPTION
This manual page documents briefly the statcvs command. This manual page was written for the Debian distribution because the original pro- gram does not have a manual page. statcvs is a program that retrieves information from a CVS repository and generates various tables and charts describing the project devel- opment, e.g. timeline for the lines of code, contribution of each developer etc. The current version of StatCvs generates a static suite of HTML documents containing tables and chart images. StatCvs is opens source software, released under the terms oft the LGPL. StatCvs uses JFreeChart to generate charts. cvs-logfile.log path to the cvs logfile of the module. Important note: statcvs will fail if the log file was not produced with cvs from within the checkout. It however does not matter if the file is not in the directory you're running statcvs from. path/to/checkout path to the directory of the checked out module OPTIONS
These programs follow the usual command line syntax, with long options starting with one dashe ("-"). A list of options is included below. For a complete description, run the program without parameters -version print the version information and exit -output-dir <dir> directory where HTML suite will be saved -include <pattern> include only files matching pattern, e.g. **/*.c;**/*.h -exclude <pattern> exclude matching files, e.g. tests/**;docs/** -title <title> Project title to be used in reports -viewcvs <url> integrate with ViewCVS installation at <url> -verbose print extra progress information JAVA-WRAPPERS NOTE This program is a shell script wrapper based on java-wrappers(7). You therefore benefit from several features; please see the java-wrap- pers(7) manual page. SEE ALSO
cvs(1) and java-wrappers(7) AUTHOR
This manual page was written by Christian Bayle <bayle@debian.org>, for the Debian project (but may be used by others). juillet 20, 2003 STATCVS(1)
All times are GMT -4. The time now is 07:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy