hi all,
i am new bee to Unix.
i know how to replace text for range of lines in vi
for e.g. replace | with |||| for line 4 through 7 using vi
: 4,7s/|/||||/g
but i have to replace | with |||| only for line no 4, 7 and 10 using vi only!!!
your help will be appreciated!
thanks,... (4 Replies)
using sed to replace a specific string on a specific line number using variables
this is where i am at
grep -v WARNING output | grep -v spawn | grep -v Passphrase | grep -v Authentication | grep -v '/sbin/tfadmin netguard -C'| grep -v 'NETWORK>' >> output.clean
grep -n Destination... (2 Replies)
I'm trying to update a text file via sed/awk, after a lot of searching I still can't find a code snippet that I can get to work.
Brief overview:
I have user input a line to a variable, I then find a specific value in this line 10th field in this case. After asking for new input and doing some... (14 Replies)
Hi,
I want to replace specific pattern "-2.0000 2" by "1.0000 3" on a particular line (line #5) in a file 1.dat. I have about 50 more files similar to 1.dat in which I want to do this correction.
Can you please suggest how can I make change only at this particular line of a file... (6 Replies)
Hi, I am trying to use an awk command to replace specific character positions on a line beginning with 80 with contents of another file.
The line beginning with 80 in file1 is as follows:
I want to replace the 000000000178800 (positions 34 - 49) on this file with the contents of... (2 Replies)
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Hi,
I'm trying to replace a string with sed, in a text file containing this pattern:
location alpha
value x
location beta
value y
location gamma
value y
location delta
value y
location theta
value z
...
What I want to achieve is:
Find location beta into text file... (1 Reply)
Hello All
I'm trying to change one string from a file contening this patern:
xxxx-xxxx
4 numbers - end 4 other numbers
This is a sample of the file:
LDR 00679 am a2200205 4500
=001 3617
=008 030219s2000\\\\xxx|||||\||||\00|\0\spa\d
=020 \\$a0211-1942
=041 \\$aCastellà
=093 ... (5 Replies)
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
Hi Folks,
I have the file in which I need to multiply the content of a line and replace the initial content of that line with the obtained answer.
For example if this is my input file file1.txt
2.259314750 xxxxxx
1.962774350 xxxxxx
2.916817290 xxxxxx
1.355026900 ... (4 Replies)
Discussion started by: Madiouma Ndiaye
4 Replies
LEARN ABOUT CENTOS
pom_add_plugin
POM_ADD_PLUGIN(7) Java Packages Tools POM_ADD_PLUGIN(7)NAME
pom_add_plugin - add plugin invocation to POM file
SYNOPSIS
%pom_add_plugin groupId*:*artifactId[*:*version] [POM-location] [extra-XML]
DESCRIPTION
This macro patches specified POM file adding plugin invocation of given groupId and artifactId.
groupId and artifactId are identifiers of Maven plugin artifact of which invocation is to be added. groupId may be ommited, in which case
value of "org.apache.maven.plugins" is used as default. artifactId must be specified. If version is not specified then default value of
"any" is used.
POM location can be either a full path to the POM file, or a path to the directory containing pom.xml. If POM location is not given then
pom.xml from current working directory is used.
Extra XML is additional XML code to be added into the <plugin> node. This parameter can be ommited, in which case no extra XML is appended.
EXAMPLES
%pom_add_plugin com.example:plugin foo - this call adds invocation of plugin com.example:plugin to foo/pom.xml.
%pom_add_plugin :maven-compiler-plugin . "<target>1.5</target>" - this call adds invocation of Maven Compiler Plugin with target configured
to 1.5.
AUTHOR
Written by Mikolaj Izdebski.
REPORTING BUGS
Bugs should be reported through Red Hat Bugzilla at http://bugzilla.redhat.com/.
SEE ALSO pom_add_dep(7), pom_add_parent(7), pom_disable_module(7), pom_remove_dep(7), pom_remove_parent(7), pom_remove_plugin(7), pom_set_parent(7),
pom_xpath_inject(7), pom_xpath_remove(7), pom_xpath_replace(7), pom_xpath_set(7).
JAVAPACKAGES 06/10/2014 POM_ADD_PLUGIN(7)