12-10-2009
Please explain the problem clearly with an example
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Here is an answer rather than a question that I thought I would share.
In my first attempt, I was using grep to find a list from file.1 within another file, file.2 which I then needed to paste the output from file.3 to file.1 in the same order. However, the results weren't what I wanted.
At... (2 Replies)
Discussion started by: Kelam_Magnus
2 Replies
2. Shell Programming and Scripting
Hi, i have number of files in a directory to be processed. the problem is some of the files does not have a header and the process is giving an error of no header found.
example of good file :
file1
HDR|20080803233401
record 1
record 2
TRA|2
example of a bad file in the same dir
... (6 Replies)
Discussion started by: sitaldip
6 Replies
3. Shell Programming and Scripting
Hello, this is probably another really simple tasks for most of you gurus, however I am trying to make a script which takes an input, greps a specific file for that input, prints back to screen the results (which are directory names) and then be able to use the directory names to move files.... (1 Reply)
Discussion started by: JayC89
1 Replies
4. UNIX for Dummies Questions & Answers
I have a folder with about 4000 files in it. I need to extract the files that contain a certain line of text to another directory.
for example files with 'ns1.biz.rr.com' need to be extracted to the directory above or some other directory.
I tried using the following but was not successful. (6 Replies)
Discussion started by: spartan22
6 Replies
5. Shell Programming and Scripting
I'm having problems since few days ago, and i'm not able to make it works with a simple awk+grep script (or other way to do this).
For example, i have a input file1.txt:
cat inputfile1.txt
218299910417
1172051195
1172070231
1172073514
1183135117
1183135118
1183135119
1281440202
... (3 Replies)
Discussion started by: poliver
3 Replies
6. Shell Programming and Scripting
I am looking for advice on how to write a script that will rename and/or move files to a different directory based upon the results of a grep.
Let's say I have ten files in a directory. Some of them - not all - contain the text 'HELLO'. I would like to be able to grep the files for that text,... (3 Replies)
Discussion started by: rjhjr64
3 Replies
7. Shell Programming and Scripting
I have two files: usednaslist & naslist
Using RHEL5
usednaslist
>filera:/vol/EQIMS/build
>filera:/vol/iquad_dev/FAST_dev
naslist
>server12 SunOS filera:/vol/EQIMS/build /users/uxsrvlogs
>servers3 SunOS filera:/vol/iquad_dev/FAST_dev /mnt
>server4 SunOS ... (2 Replies)
Discussion started by: nitrobass24
2 Replies
8. Shell Programming and Scripting
I have been struggling to grep a file of NGrams (basically clusters of consonants or Consonant and Vowel) acting as a pattern file from an Input file which contains a long list of words, one word per line. The script would do two things:
Firstly read a text pattern from a large file of such... (5 Replies)
Discussion started by: gimley
5 Replies
9. UNIX for Beginners Questions & Answers
When I use the following grep command with options -F and -f, its just displaying the text related to only the last pattern.
Command: $ grep -f pattern_file.txt input_file.txt
Output: doc-C2-16354
Even the following command yields the same output:
Command: $ grep -Ff pattern_file.txt... (6 Replies)
Discussion started by: nsai
6 Replies
10. Programming
Hi Experts,
I am writing a python script to grep string from file and display output in csv file as in attached screenshot
https://drive.google.com/file/d/1gfUUdfmQma33tz65NskThYDhkZUGQO0H/view
Input file(result_EPFT_config_device)
Below is the python script i have prepared as of... (1 Reply)
Discussion started by: as7951
1 Replies
LEARN ABOUT DEBIAN
edos-rpmcheck
EDOS-RPMCHECK(1) General Commands Manual EDOS-RPMCHECK(1)
NAME
Edos-rpmcheck - Check satisfiability of rpm package dependencies
SYNOPSIS
edos-rpmcheck [option] ... [package] ...
DESCRIPTION
edos-rpmcheck reads from standard input a set of rpm package descriptions. Packages may appear with multiple versions in this set. For
instance, an uncompressed hdlist.cz is suitable as input.
We say that a package is identified in this set by the pair consisting of the package name and of the package version.
A package (called goal) is called installable with respect to a set of packages if there exists a subset of the packages that
- contains at most one version for each package name
- contains the goal package (in any version, or a specific version)
- all packages of the subset have their dependencies and conflicts satisfied in this subset.
Edos-rpmcheck checks whether every package given as argument is installable with respect to the input set of packages. Specific versions
can be specified by following the package name with the sign '=' and the version of the package (for instance, 'xemacs21=21.4.17-1'). If no
package name is given as argument then all packages of the input set are checked for satisfiability.
The constraint solving algorithm is complete, that is it finds a solution whenever there exists one, even for multiple disjunctive depen-
dencies and deep package conflicts. This problem is computationally infeasible in theory (that is, NP-complete), but can in practice be
solved very efficiently.
OPTIONS
-explain
Explain the results
-rules Print generated rules
-failures
Only show failures
-successes
Only show successes
-base file
Specifiy an additional file providing packages that are not checked but used for resolving dependencies
-quiet Supress warnings and progress/timing messages
-xml Output results in XML format
-help, --help
Display this list of options
EXAMPLE
Check which packages in a particular distribution are not installable and why:
gunzip -c hdlist.cz | edos-rpmcheck -failures -explain
where hdlist.cz is the file pertaining to that distribution.
Check whether version 21.4.17-1 of the xemacs21 package is installable in a distribution described by the file Packages:
gunzip -c hdlist.cz | edos-rpmcheck -explain xemacs=21.4.17-1
AUTHOR
Edos-rpmcheck has been written by Jerome Vouillon for the EDOS project. This man-page has been compiled by Ralf Treinen.
SEE ALSO
<http://www.edos-project.org> is the home page of the EDOS project.
edos-debcheck(1) is the analogous tool for debian packages.
EDOS
2006-05-20 EDOS-RPMCHECK(1)