Thanks to this forum I have managed to work out a solution to my problem and actually understand most of it, but one thing is confusing me and I am sure someone here can explain.
I need to insert a piece of txt into a file. This txt is
#! /bin/sed -nf
# Remove C and C++ comments, by Brian Hiles (brian_hiles@rocketmail.com)
# Sped up (and bugfixed to some extent) by Paolo Bonzini (bonzini@gnu.org)
# Works its way through the line, copying to hold space the text up to the
# first special character (/, ", '). The original... (1 Reply)
hi all
i was going through some perl code i came across this line and i am not getting what is exactly going on ..
$$this{localtion} = GetName->GetVarName("EXE_DIR") ;
what is the red part doing in above code (2 Replies)
Hi,
Can anyone pls explain me the below SED code in detail.
sed -e :a -e '$!N;s/\n//;ta' -e P -e D
When this code is executed with a file(has 1lac records), it is taking very long time to process.
So I wanted to modify this SED code with equivalant AWK code.
Thanks,
Sri (1 Reply)
<tr><td width=10% style='width:5%;background:#F7F0D9;padding:0in 0in 0in 0in 0in'><center><b>Package</b></td><td width=10% valign=center style='width:5%;background:#F7F0D9;padding:0in 0in 0in 0in 0in'><center><b>JTs</b></td>
This is got to be simple. I run this on the above .html file:
sed... (8 Replies)
Can anyone explain the below sed oneliner?
sed -e ':a' -e '$q;N;11,$D;ba'
It works same as tail command.
I just want to know how it works.
Thanks
---------- Post updated at 11:42 PM ---------- Previous update was at 11:37 PM ----------
Moderators,
Can you please delete this thread?... (0 Replies)
can anyone please explain this code?
sed ':a;N;$!ba;s/]\n//g' file
it replaces lines ending with "]" and concatenates with the next line so that
line1]
line2
becomes
line1line2
i don't understand this part: :a;N;$!ba;
I have noted that I can replace "a" with any letter:
... (1 Reply)
I came across this sed expression, and it does exactly what I want.
However I haven't got the faintest clue how it does it and thus do not feel capable of using it.
Can someone please explain how this expression works?
(I used it to remove html tags in a html file I was converting to text)
... (3 Replies)
sed -e 's,*$,,'
Can someone explain the options in this command? (2 Replies)
Discussion started by: scj2012
2 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)