01-12-2016
Finding non-existing words in a list of files in current directory and/or its sub-directories
Hi All,
I have a list of words (these are actually a list of database table names separated by comma).
Now, I want to find only the non-existing list of words in the *.java files of current directory and/or its sub-directories.
Sample list of words: table_one,table_ten,table_x,table_y,table_z
Type of files in current directory and/or its sub-directories: *.java
Suppose, 2 words (say table_ten and table_z) are not exist in any of the *.java files in current directory and/or its sub-directories, then print these 2 words as output as shown below.
Non-existing words are: table_ten,table_z
Please help.
Thanks in advance.
Last edited by Bhanu Dhulipudi; 01-12-2016 at 05:38 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello all.
i would like to be able to find the names of all files on a remote machine using ssh.
i only want the names of files, not directories
so far i'm stuck at "du -a | sort -n"
also, is it possible to write them to a file on my machine? i know how to write it to a file on that... (2 Replies)
Discussion started by: user19190989
2 Replies
2. UNIX for Dummies Questions & Answers
I can't manage to list all files that are not directories from current directory. (2 Replies)
Discussion started by: beni22sof
2 Replies
3. Shell Programming and Scripting
Hi,
Can anyone redirect to an existing thread or provide some info on how to find the size of a directory and it's sub-directories using a single script ?
I tried finding a similar thread but in vain.
I'm a newbie and any help would be greatly appreciated.
Thanks in advance. (3 Replies)
Discussion started by: ryder
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time..
Thanks (3 Replies)
Discussion started by: ammu
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Please help me, how to get all the direcotries, its sub directories and its sub directories recursively, need to exclude all the files in the process.
I wanted to disply using a unix command all the directories recursively excluding files.
I tried 'ls -FR' but that display files as... (3 Replies)
Discussion started by: pointers
3 Replies
6. UNIX for Dummies Questions & Answers
Evening all !
I would like to ask your expertise on how to accomplish the following ;
I have 2 lists, and would like each line from list2 to be appended to each line in list1, resulting in list3 ;
List1;
alpha
beta
charlie
List2;
one
two
three (4 Replies)
Discussion started by: TAPE
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
In the Unix Box, I have a situation, where there is folder name called "Projects" and in that i have 20 Folders S1,S2,S3...S20. In each of the Folders S1,S2,S3,...S20 , there is a same name folder named "MP". So Now, I want to get all the files in all the "MP" Folders and write all those... (6 Replies)
Discussion started by: Siva Sankar
6 Replies
8. Shell Programming and Scripting
Can anyone come up with a unix command that lists
all the files, directories and sub-directories in the current directory
except a folder called log.?
Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
7 Replies
9. Shell Programming and Scripting
i need to find a portable way to go through multiple directories to find a file.
I've trid something like this:
find /opt/oracle/diag/*/alert_HH2.log -printordinarily, i can run the ls command and it will find it:
/opt/oracle/diag/*/*/*/*/alert_HH2.log
The problem with this approach is... (3 Replies)
Discussion started by: SkySmart
3 Replies
10. UNIX for Beginners Questions & Answers
What I know so far:
ls -A will list all files except those starting with a dot
ls -d will list all directories
ls -m will separate contents by commas
For getting crtimes use:
stat filename will give me the inode number
or
ls -i filename will give... (13 Replies)
Discussion started by: chstewar
13 Replies
LEARN ABOUT DEBIAN
doctorj
DOCTORJ(1) DOCTORJ(1)
NAME
doctorj - Javadoc analyzer and spell-checker
SYNOPSIS
doctorj [--emacs] [--warning=LEVEL] [--tabwidth=NUM]
[--dictionaries=LIST] [--verbose] {FILE...}
DESCRIPTION
doctorj is an application to analyze Javadoc comments against Java code, verifying its integrity and format. It also spell-checks Javadoc
comments.
OPTIONS
--emacs
Whether to list violations in Emacs form, i.e., a single line of the form:
8:48:9:4: An error occurred on this line.
By default, violations are displayed in ``long form'', showing the context.
--warning=LEVEL
Sets the warning level, which by default is -1, meaning that only errors are reported. A warning level of 0 means that Javadoc for
public or abstract items (classes, interfaces, methods, constructors, and fields) will be checked. A warning level of 1 will result
in the addition of checking of protected-access items; 2 is for package-access items, and 3 will check all items.
--tabwidth=NUM
Sets the number of spaces to use for alignment with tabs. By default, this value is 4.
--dictionaries=LIST
Sets the dictionaries (word lists) to use for spell-checking. LIST is a comma-delimited string of paths to the word list files. By
default, doctorj uses the word list at /usr/share/doctorj/words.LOCALE, where LOCALE is of the standard Java form. doctorj is dis-
tributed with three word lists: words.en_CA (Canadian English), words.en_UK (United Kingdom English), and words.en_US (United States
English).
--verbose
Produces debugging output. Note that this signficantly impedes performance.
FILE Specifies the files to check. If the argument specified is a directory, all files ending in ``.java'' under that directory will be
analyzed.
EXAMPLES
To check a single file:
% doctorj String.java
To check multiple files:
% doctorj String.java StringBuffer.java Object.java
To check all files below a directory:
% doctorj /proj/app/src
To run at the maximum warning level:
% doctorj --warning=4 .
To specify a different dictionary:
% doctorj --dictionaries=/usr/share/dict/words .
CONFIGURATION
$HOME/.doctorjrc
The run-control file, of the form:
emacs: true
warning: 4
tabwidth: 8
dictionaries: /usr/share/dict/words,/home/me/etc/terms
verbose: false
Dictionary (word list) files contain one word per line, for example:
adaxial
cepaceous
sabaton
vespiaries
AUTHOR
Jeff Pace<jpace@incava.org>
The DoctorJ web site is at http://www.doctorj.org.
BUGS
Bugs and issues should be reported at the SourceForge.net project site: http://www.sf.net/projects/doctorj
SEE ALSO
java(1), javadoc(1)
COPYRIGHT
Copyright (c) 2002, Jeff Pace.
All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the terms of the GNU Lesser General
Public License: http://www.gnu.org/licenses/lgpl.html
DOCTORJ(1)