Hello all
Im doing search in jar files using this oneLiener :
f
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?
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)
I have a list of pattern in a file, I want each of these pattern been searched from 4 files. I was wondering this can be done in SED / AWK.
say my 4 files to be searched are
> cat f1
abc/x(12) 1
abc/x 3
cde 2
zzz 3
fdf 4
> cat f2
fdf 4
cde 3
abc 2... (6 Replies)
Hi All,
I have some thousand files with names like 1.syl, 2.syl, 5.syl etc.
These files contain one sentence each. I want to store all those sentences along with the file ID that is 1, 2, 5 with the sentences they contain.
For example,
1.syl has
this is a test line
2.syl has
... (3 Replies)
OS : RHEL 6.1
Shell : Bash
I have lots of files in /tmp/stage directory as show below.
Using a loop, I need to print all the filenames in this directory except those ending with a number. How can I do this ?
# pwd
/tmp/stage
#
#
# ls -l *
-rw-r--r--. 1 root root 0 Oct 7 18:38 stmt1... (2 Replies)
Gents,
I will like to print continues names according to a range of numbers
example
first number
1000
last number
1005
I would like to get the following result
tape1000 tape1001 tape 1002 tape1003 tape1004 tape1005.
Thanks for your support. (4 Replies)
Data files coming in different names in a file name called process.txt.
1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz
The process needs to discard all the below files and only process two of the 4 file names available
... (1 Reply)
I'm interested in writing a report script using BASH that searches all of the files in a particular directory for a keyword and printing a list of files containing this string...
In fact this reporting script would have searches for multiple keywords, so I'm interested in making multiple... (2 Replies)
I have a python script that gives output called test.png. By using the following command I run the script every 2 seconds. What is the easiest way to save the output as follows ( test.png (1st output), tes1.png (second output), tes2.png ....)
Command I i use
while sleep 2; do python... (1 Reply)
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Hi All ,
New to the Bash / Shell programming world and looking for some help
I have two files
1: Contains a list of names :
eg
STEVE
BOB
CRAIG
2: Contains information with those included names but also others that are not in the list (1 Reply)
Discussion started by: Lonerg550
1 Replies
LEARN ABOUT DEBIAN
mh_linkjars
MAVEN(1) User Commands MAVEN(1)NAME
Maven - Creates links in /usr/share/maven-repo for all jars.
SYNOPSIS
mh_linkjars [option]...
DESCRIPTION
Reads the file debian/$package.poms and create links for each jar file generated by a POM listed in the .poms file.
OPTIONS -h --help: show this text
-V --version: show the version
-p<package> --package=<package>: name of the Debian package which
will contain the jar files
-e<version>, --set-version=<version>: set the version for the jars,
do not use the version declared in the POM file.
-r<rules> --rules=<rules>: path to the file containing the
rules to apply when cleaning the POM. Optional, the default location is debian/maven.rules
-v --verbose: show more information while running
-n --no-act: don't actually do anything, just print the results
The <package>.poms file should contain the list of POM files associated with the list of jars to install in the repository, and each pom
file should have either the option --usj-name, giving the name of the jar (without the extension) to link to and located in
/usr/share/java, or the option --artifact, which should contain the full name of the source jar to link to.
See also: mh_linkjar(1), mh_install(1)Maven Repo Helper version 1.7.1 January 2012 MAVEN(1)