i think grep can only find char in files matching a pattern without any wildcards like ? correct? It works with * but not ?.
how can i write a small c program to find words in a file, like a list, that matches a pattern like ma?y, b??con, etc if grep doesn't understand ? in a pattern search. if... (1 Reply)
Hi Guys,
Can you help with the shell script:
I would like to search a fixed width pattern from a file
say for each line from a fixed position and lenght it has to return all rows from the file.
Example:
To search the third column for "def" it has to return 1 and 4th rows only
... (2 Replies)
I have a problem in searching a specific pattern in c files.
My requirement:
I have to find all the division operator in all cfiles.
The problem is, the multi line comments and single line comments will also have forward slash in it.
Even after avoiding these comments also, if both... (6 Replies)
can anybode tell me ? I want to search for a pattern present in a whole directory and subdirectories's files containg " crat"
I tried
grep -r "crat" */* ;
is it right ? (3 Replies)
Hi All,
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
#!bin/sh
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
read value
# check if the user has... (1 Reply)
Hi,
I need small help from you people.
In a directory there are around 150 odd files and few them contain the word "TRACK" and few are not.
How can I find out the the list of those files which doesn't contain the word "TRACK"?
Thanks,
Siba (4 Replies)
in my file i have somthing likre
kpk_12
kpk_1
kpk_1.tcl
kpk_3.tcl
kpk
kpk
kpk
i want search only kpk i am using this cmd /kpk ...results it is showing all . any cmd is ther other then this to search exactword in this example kpk it shoulsnot show kpk_* etc
Thanks in Advance
... (2 Replies)
Hi there,
Looking forward to your advice for the below:
I have a file which contains 2 paragraphs related to a particular pattern. I have to search for those paragraphs from a log file and then print a particular line from those paragraphs.
Sample:
I have one file with the fixed... (3 Replies)
Discussion started by: danish0909
3 Replies
LEARN ABOUT CENTOS
build-jar-repository
BUILD-JAR-REPOSITO(1) Java Packages Tools BUILD-JAR-REPOSITO(1)NAME
build-jar-repository - create a symbolic link to a JAR
SYNOPSIS
build-jar-repository [OPTION]... DIRECTORY JAR|artifact-coordinates
DESCRIPTION
Build a JAR repository in the named directory by copying files or creating symbolic links. The JARs can be identified by their names or
Maven artifact coordinates. Artifact coordinates specify Maven artifact and are in format
groupId:artifactId[:extension[:classifier]]:version. If extension is omitted then "jar" is used. If classifier is omitted then empty
classifier is used. For more information see XMvn Configuration Reference.
OPTIONS
If no option is specified the default action will be to create symbolic links
-c, --copy
Copy files.
-h, --hard
Create hard links.
-p, --preserve-naming Try to preserve the names of the original JAR files (in case of a nested hit the slashes in the path will still be
replaced by underscores). Using this option makes any future automated repository rebuild impossible, and implies -c unless specified
otherwise.
-s, --soft, --symbolic Create symbolic links (default).
--help Display help text
EXAMPLES
build-jar-repository . jndi - This will create a symbolic link to the jndi JAR in the current working directory.
build-jar-repository -h /tmp log4j - This will create a hard link to the log4j JAR in /tmp directory.
build-jar-repository -c . org.apache.commons:commons-io - This will copy commons-io JAR to the current working directory.
AUTHOR
Originally written by Nicholas Mailhot and David Walluck.
REPORTING BUGS
Bugs should be reported through Red Hat Bugzilla at http://bugzilla.redhat.com/.
SEE ALSO build-classpath(1), rebuild-jar-repository(1),
JAVAPACKAGES 06/10/2014 BUILD-JAR-REPOSITO(1)