I have file which has "A" character in more than 1000 lines and I want replace this "A" with "f". There is also "A" which I don't want to replace at the last line.
Currently, I use this script to replace them one by one
:g/A/s//f/g
Regards (2 Replies)
I have a 3 status option 1 , 4 , 6
1 - Active
4 - Temp..
6 - Deactive
I want to build a script which when it finds either of the status options (1,4,6), then returns the relevant string.
txs
:confused: (3 Replies)
I have this script
sed -e '$q' -e 's/I/D/g' <inputfile> outfile
which replaces I by D...
I have to run this script in 90 files which their filename starts with CD*. I want to call all these files and execute this command once.
Or schedule it to be executed at 1600hrs every day.
I want... (7 Replies)
Hi,
I made a build script for the product I am working on.
The script was made in the /bin/sh shell.
My first line in the script (after the #! /bin/sh and following # lines ) were,
if ; then
/bin/sh
fi;
It works well with my sh shell. I run the script as
sh build.sh
Now I... (9 Replies)
I'm trying to populate a command line into a variable. It appears to be executing, instead. Here's an example:
mycmd=''
if ...; then
$mycmd='sudo '
fi
$mycmd=$mycmd 'sed -i prev s/aaa/bbb/' $myfile
res=`$mycmd`
(I'm also not sure of the best way to execute the command from the... (1 Reply)
I am using an array to store some data (keys e.g 47975081_1215781266128), it can be assumed that it is key to other data.
I want extract data from a file based on a couple of keys (range) and store the resulting data in a variable using the following command:
sed -n... (9 Replies)
Hello everyone.
I am using the select command to build a menu, here is my question:
Is it possible to generate a menu which contains several sections and have a separator between the sections without having a selection number generated in front of the separator?
This is a sample of what I would... (1 Reply)
Hi,
With a awk script i create a "adduser line"
$ cat /tmp/tmp.ldif | awk -f ldif2adduser.awk
adduser --uid 1002 --gid 1000 --gecos "ROUSSIN Guy" --home /homeL/guy --shell /bin/bash --disabled-password guy
If i cut and paste this line, all is fine. But in a shell script i get errors :
... (2 Replies)
Hi,
So I downloaded this kernel source and was able to build it successfully.
But I want to add this SDK source code inside, can anyone help me how to do this? Note that the SDK source can be built by itself.
I added the SDK in the main Makefile:
init-y := init/
#added SDK... (0 Replies)
Hi
I have a build.xml file and I can run it on Windows via cmd. Now I want to write a script to invoke the same. Is there a way to do this? (1 Reply)
Discussion started by: ankur328
1 Replies
LEARN ABOUT DEBIAN
pod2docbook
POD2DOCBOOK(1p) User Contributed Perl Documentation POD2DOCBOOK(1p)NAME
pod2docbook - Convert POD data to DocBook SGML
SYNOPSIS
pod2docbook [--help] [--doctype=article|chapter|section|refentry] [--title=title] [--spaces=# spaces per indent level]
[--fix-double-quotes] [--no-header] [--base-id=idstring] [infile [outfile]]
DESCRIPTION
pod2docbook converts files from pod format (see perlpod) to DocBook 4.2 SGML (see <http://www.docbook.org/>). The program itself is merely
a driver for the Pod::2::DocBook class; if you're interested in details of pod-to-SGML translation see Pod::2::DocBook.
OPTIONS AND ARGUMENTS
[--help]
Print usage and exit.
[--doctype=article|chapter|section|refentry]
Specifies the document type for the output file; the default is section.
[--title=title]
Specifies the document title. The default is infile, if it is supplied, or empty string otherwise.
[--spaces=# spaces per indent level]
Specifies the number of spaces per indent level in the SGML output; the default is 2.
[--fix-double-quotes]
Replace pairs of double quotes in regular paragraphs with <quote> and </quote> (see Pod::2::DocBook for details).
[--no-header]
Omit the DOCTYPE line from the output.
infile
The name of the file from which to read pod source; if not supplied, STDIN is used for input.
outfile
The name of the file to which to write SGML; if not supplied, STDOUT is used for output.
[--base-id=idstring]
The root element of the --doctype will have the idstring set for attribute id. The default is an input file name "cleaned up" to
conform with XML restriction for characteds used in id strings. (SEE http://www.w3.org/TR/2000/REC-xml-20001006#NT-Name
<http://www.w3.org/TR/2000/REC-xml-20001006#NT-Name>)
SEE ALSO
pod2docbook, perlpod, Pod::DocBook, SVN repo - https://cle.sk/repos/pub/cpan/Pod-2-DocBook/ <https://cle.sk/repos/pub/cpan/Pod-2-DocBook/>,
http://www.ohloh.net/projects/pod-2-docbook <http://www.ohloh.net/projects/pod-2-docbook>, doc/ + examples/pod2docbook-docbook/ for
Pod::2::DocBook DocBook documentation
DocBook related links: <http://www.docbook.org/>, <http://www.sagehill.net/docbookxsl/>,
http://developers.cogentrts.com/cogent/prepdoc/pd-axfrequentlyuseddocbooktags.html <http://developers.cogentrts.com/cogent/prepdoc/pd-
axfrequentlyuseddocbooktags.html>
AUTHOR
Alligator Descartes <descarte@symbolstone.org> wrote a module called Pod::2::DocBook, which was later maintained by Jan Iven
<jan.iven@cern.ch>. That module was based on the original pod2html by Tom Christiansen <tchrist@mox.perl.com>.
Nandu Shah <nandu@zvolve.com> wrote Pod::DocBook, which is unrelated to the previous module (even though they both perform the same
function). (http://search.cpan.org/~nandu/Pod-DocBook-1.2/ <http://search.cpan.org/~nandu/Pod-DocBook-1.2/>)
Jozef Kutej <jkutej@cpan.org> renamed the module to Pod::2::DocBook because Nandus version was buried in the CPAN archive as an
"UNAUTHORIZED RELEASE".
COPYRIGHT
Copyright 2004, Nandu Shah <nandu@zvolve.com>
Copyright 2008, Jozef Kutej <jkutej@cpan.org>
This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself
perl v5.12.3 2011-05-28 POD2DOCBOOK(1p)