I followed the egrep example given in the thread "parse text or complex grep ?". It is exactly what I need...except... how do I insert a blank line after the second line? My exact command is:
egrep 'patt1|patt2' filename
the result is:
patt1
patt2
patt1
patt2
and so on. I would... (2 Replies)
Hello friends,
I have a C source code containing sql statements. I use the following sed command to print all the sql blocks in the source code....
sed -n "/exec sql/,/;/p" Sample.cpp
The above sed command will print the sql blocks based on the pattern "exec sql" & ";"... (2 Replies)
Hi,
I need to match lines after a pattern, upto the first blank line.
Searched in web and some forums but coulnt find the answer.
where <restart_step> =
10 -- Execute query
20 -- Write the contents to the Oracle table
30 -- Writing Contents to OUTPUT... (7 Replies)
Hello...
I have a file which contain certain number of records.
I want to generate another file from this file which will contain 1st line as a blank line & after every 5 lines one blank line will be inserted. How to achieve this through shell scripting?
Thanks... (5 Replies)
I use the following as part of a script to correct for a faulty hostname file.
# get the domain name
read -r thehostname < /etc/hostname
dom="$(echo $thehostname | cut -d'.' -f2)"
numchar=${#dom}
if
then
echo "It appears as though the hostname is not correctly set."
echo "Hostname has... (5 Replies)
Hi
Im trying to do the following in sed. I want to delete any blank line at the start of a file until it matches a pattern and then stops. for example:
Input
output:
I have got it to work within a range of two patterns with the following:
sed '/1/,/pattern/{/^]*$/d}'
The... (2 Replies)
Hi Guys,
I am stuck in between and seeking help here.
Requirement: A script that will run every morning which will connect to Mysql database and run the query to inform us about the holidays (it will also check if there were any holidays during last 2 business days). So the three queries are... (11 Replies)
Input: START
OS:: UNIX
Release: xxx
Version: xxx
END
START
OS:: LINUX
Release: xxx
Version: xxx
END
START
OS:: Windows
Release: xxx
Version: xxx
ENDHere i am trying to get all the information between START and END, only if i could match OS Type.
I can get all the data between the... (3 Replies)
Discussion started by: Dharmaraja
3 Replies
LEARN ABOUT DEBIAN
dh_cligacpolicy
DH_CLIGACPOLICY(1) Debhelper for CLI (Common Language Infrastructure) DH_CLIGACPOLICY(1)NAME
dh_cligacpolicy - creates and installs a CLI policy file for a package
SYNOPSIS
dh_cligacpolicy [debhelper options] [-n]
DESCRIPTION
dh_cligacpolicy is a debhelper program that is responsible for creating, compiling, and installing policy files for a Debian package. This
automatically includes postinst and prerm commands needed to install these policies into the system.
OPTIONS -n, --noscripts
Do not modify postinst/prerm scripts.
FILE FORMAT
This file uses the debian/cligacpolicy files (either policyassemblies or debian/packagename.cligacpolicy) to generate the policy file. It
supports multiple versions of the policy, including mapping multiple versions to a single file.
The file format of the cligacpolicy file consists of five properties per line, each one separated by whitespace.
Keyfile is a path, from the package root, to the .snk file =used to sign the assembly.
Assembly is the name of the assembly, without the .dll =extension. For example, for log4net.dll, use log4net.
Version Range can be a single four-part version, such as =1.2.3.4, or a full range, such as 1.2.3.4-1.2.6.7. For a single line, =the first
two numbers must be identical. To have an assembly apply to =multiple versions, such as 1.2.0.0 to 2.4.0.0, there needs to be one =line for
each version range.
Assembly version is the version of the assembly being =built.
Priority defines the priority of the policy files. =Typically, each version will increase the priority and =contains all the policy
controls for prior versions.
The fields can be separated with spaces or tabs. Comments start the line with # characters and blank lines are ignored.
NOTES
Note that this command is not idempotent. "dh_clean -k" should be called between invocations of this command. Otherwise, it may cause
multiple instances of the same text to be added to maintainer scripts.
EXAMPLE
For the log4net 1.2.10.0 version, a policy file is used to map all versions from 1.2.8.0 to 1.2.9.99 into the current version.
debian/log4net.snk log4net 1.2.8.0-1.2.9.99 1.2.10.0 10
SEE ALSO debhelper(7)
This program is a part of cli-common-dev.
AUTHOR
Dylan R. E. Moonfire <debian@mfgames.com>
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
Around line 31:
You forgot a '=back' before '=head1'
perl v5.14.2 2012-01-17 DH_CLIGACPOLICY(1)