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 SUSE
create-jar-links
CREATE-JAR-LINKS(1) User Commands CREATE-JAR-LINKS(1)NAME
create-jar-links -f instructions_file [-a archive_file] [-p]
SYNOPSIS
create-jar-links -f instructions_file [-a archive_file] [-p]
OPTIONS -a Archive file on which actions will be performed, as opposed to current directory
-p Preserve original file names (-p to build-jar-repository)
-f The instructions file to check against.
-a Archive file on which actions will be performed, as opposed to current directory
-p Preserve original file names (-p to build-jar-repository)
-f The instructions file to check against.
EXAMPLES
Suppose there is a clean source tarball (using clean-binary-files(1) and check-binary-files(1)). Following this, one can extract the tar-
ball, cd to it, and run:
create-jar-links -f <instructions> -d <custom_jar_map>
This would call build-jar-repository(1) and create symlinks, with extra mappings (form vanilla jar names to jpp names) that are specifiable
via the custom jar map.
SEE ALSO
Regular Manual Pages
check-binary-files(1), create-jar-links(1), build-jar-repository(1), jpackage-utils(7)
Documentation
Further reading should be found in clean-binary-files.txt located in your standard documentation directory.
Original mail is here:
https://www.zarb.org/pipermail/jpackage-discuss/2005-November/009158.html
AUTHOR
Written by Deepak Bhole
REPORTING BUGS
Report bugs using JPackage Bugzilla (http://www.jpackage.org/bugzilla/)
create-jar-links (jpackage-utils) 1.7.5 February 2009 CREATE-JAR-LINKS(1)