Hello all
Im doing search in jar files using this oneLiener :
find . -name "*.jar" -print -exec jar -tvf {} \; | grep -n \/someClassName.class
but I also will like to see the jar file names that the grep succeed the search
What I need to add to this command so it will give the file names? (2 Replies)
What I need to do is: I need to use the grep command to search for pattern in directory and sub-directories. And also I need to show the permission of file been seached by the grep command.
Could any one please suggest me?
-----------------
$> cat file1.txt
A
-----------------... (8 Replies)
Hi,
Can anbody please let me know how i can retrieve lines above the line being searched in a file.
I am looking for an error message from a file, if I see that message I want the lines above that message along with this line.
how do we do this.
Please do let me know
An example which i have... (2 Replies)
Hello,
I have active log file i want to grep the last occurrence of the word in that log file the log file gets on increasing and increasing i want to fetch it from live file.
Please guide me, Thanks in advance (4 Replies)
using: find . -type f -print|xargs -li "string", how do I limit the dated directories (2010-7-14, 2010-7-13,etc.) to just 2009 & 2010 years of directories to search. We go back to 2004 in our archives, way too many files. (3 Replies)
it seems that /usr/local/lib is not searched by ld-linux.so by default in fedora14.
If so, why some software put its lib files in /usr/local/lib? eg: glib and gtk+. (6 Replies)
Hi,
i have to insert the content of source.txt into the searched pattern of the file second.txt.
$cat source.txt
One
Two
Three
.
.
$cat second.txt
This is second file
pattern match start here
pattern match end here
end of the file
so the result will be like this (4 Replies)
Hello,
I have a text file like the one found below and wouild like the grab the certain lines after the searched phrase. For example, I'd like to look up "Hello" and once I find the "Hello" section, grab the lines that contain "Text" and stops at the next section.
Input.txt
Example Hello... (8 Replies)
Hi,
I am trying to monitor alert log of oracle. i am searching based on ORA- error message
if i find the line, i want the 2 to 3 lines before search line and 2 to 3 lines after the searched line.
like for example, oracle has generated ORA7445 errors in the alert log, when i search for that... (18 Replies)
Full title: How to write a script to match a searched name to a given list, and then returns other names with the same properties
Anyway, first time here, hi! So I'm taking an introductory course at uni and there's a question in our lab that asks us to write a script where a user can search a... (4 Replies)
Discussion started by: aheyhey
4 Replies
LEARN ABOUT NETBSD
bpm
BPM(1) BSD General Commands Manual BPM(1)NAME
bpm -- menu-based binary package manager
SYNOPSIS
bpm [-hnVv] [-b baseURL] [-m machine] [-r release] [-w seconds]
DESCRIPTION
The bpm command is used to locate and install binary packages from any reachable URL.
The following command-line options are supported:
-b baseURL
Specify a base URL from which to download binary packages. The default URL is ftp://ftp.NetBSD.org/pub/pkgsrc/packages.
-h Print a help message and then exit.
-m machine
Use machine as the machine architecture to be used, instead of that returned by uname(1).
-n Don't actually execute the commands to add the package.
-r release
Use release as the operating system release to be used, instead of that returned by uname(1).
-V Print version number and exit.
-v Turn on verbose output.
-w seconds
The number of seconds to wait after displaying an error message and returning to normal menu operations.
bpm provides a menu-based binary package manager for NetBSD. bpm first connects to the URL using ftp(1), and displays a list of categories
for which binary packages exist. If no categories are displayed, it could be that the machine architecture or operating system release
string have been wrongly interpreted, and that it will be necessary to override this values by means of the command line options. Within a
category, a list of packages will be displayed, and by selecting one using the number assigned to it, the package will be downloaded automat-
ically, and installed, using the pkg_add(1) utility. It is also possible to change the category currently being examined, and to quit from
the utility, simply by selecting the appropriate choices on the menu.
ENVIRONMENT
The environment variables which govern the behavior of ftp(1) and pkg_add(1) are valid for bpm.
SEE ALSO ftp(1), pkg_add(1), uname(1)AUTHORS
The bpm utility was written by Alistair Crooks <agc@NetBSD.org>.
BSD August 3, 2007 BSD