Hi All!
Thanks for the replies! I'm afraid I wasn't clear enough in my initial example. I realized that when I received my first reply, but I wasn't able to reply anymore.
The separator is NOT the last line in the file, I want to automatically insert a line into an existing changelog, that is part of a script, which starts below the separator...
I would like to use the separator, because sometimes the comments in the changelog span multiple lines, so I can't look for the last v000x and append a new line below it.
Like so:
---------- Post updated at 10:39 AM ---------- Previous update was at 10:33 AM ----------
Never mind. RudiC's piece of code, even though it's completely incomprehensible, does the job!
Hi all,
I need to insert new text and change existing text in a file. For that I used the below line in the command line and got the expected output.
sed '$a\
hi...
' shell > shell1
But I face problem when using the same in script. It is throwing the error as,
sed: command garbled:... (4 Replies)
First of all, I know this can be more eassily done with perl or other scripting languages but, that's not the issue. I need this in sed. (or wander if it's possible )
I got a file (trace file to recreate the control file from oracle for the dba boys)
which contains
some lines
another line... (11 Replies)
Hello,
I'm new in Shell scripting but i should write a script, which inserts the license header out of a txt-File into the files in our Projekt. For the Java classes it runs without Problems but for XML files not. At xml-files i have to put the license Header after the xml-Header (?xml... (1 Reply)
Greetings all,
I am trying to match a string, and after that insert a few lines above that match.
The string is "Version 1.0.0". I need to insert a few lines ONLY above the first match (there are many Version numbers in the file). The rest of the matches must be ignored. The lines I need to... (2 Replies)
Hi
I am trying to insert a block of text 2 lines above a pattern match using sed
eg
#Start of file entry
{
}
#End of file entry
new bit of text has to be put in just above the } eg
#Start of file entry
{
New bit of text
}
#End of file entry (7 Replies)
I have following pattern in a file:
00:01:38 UTC
abcd
00:01:48 UTC
00:01:58 UTC
efgh
00:02:08 UTC
00:02:18 UTC
and I need to change something like the following
00:01:38 UTC
abcd
00:01:48 UTC
XXXX
00:01:58 UTC
efgh
00:02:08 UTC
XXXX (6 Replies)
Hello, I am trying to insert a section of text between lines in another text file.
The new lines to be inserted are:
abcd.efgh.zzzz=blah
abcd.efgh.xxxx=blah
Where N = 0 to 2
Original File:
abcd.efgh.wwxx=aaaaa
abcd.efgh.yyzz=bbbbb
abcd.efgh.wwxx=aaaaa
abcd.efgh.yyzz=bbbbb... (3 Replies)
Have a file which has the create statement like below
create table emp
( empno integer,
empname char(50))
primary index(empno);
i need to find a string starting with create and ends with semi-colon ;. if so insert the below statement before create statement
rename table emp to emp_rename;... (2 Replies)
Having a little trouble getting this to work just right.
I have xml files that i want to split some data.
I have 2 <name> tags within the file
I would like to take only the first tag and split the data.
tag example.
From this.
TAB<Name>smith, john</Name>
to
TAB<Name>smith,... (8 Replies)
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
LEARN ABOUT NETBSD
dh_installchangelogs
DH_INSTALLCHANGELOGS(1) Debhelper DH_INSTALLCHANGELOGS(1)NAME
dh_installchangelogs - install changelogs into package build directories
SYNOPSIS
dh_installchangelogs [debhelperoptions] [-k] [-Xitem] [upstream]
DESCRIPTION
dh_installchangelogs is a debhelper program that is responsible for installing changelogs into package build directories.
An upstream changelog file may be specified as an option.
If there is an upstream changelog file, it will be installed as usr/share/doc/package/changelog in the package build directory.
If the upstream changelog is an html file (determined by file extension), it will be installed as usr/share/doc/package/changelog.html
instead. If the html changelog is converted to plain text, that variant can be specified as a second upstream changelog file. When no plain
text variant is specified, a short usr/share/doc/package/changelog is generated, pointing readers at the html changelog file.
FILES
debian/changelog
debian/NEWS
debian/package.changelog
debian/package.NEWS
Automatically installed into usr/share/doc/package/ in the package build directory.
Use the package specific name if package needs a different NEWS or changelog file.
The changelog file is installed with a name of changelog for native packages, and changelog.Debian for non-native packages. The NEWS
file is always installed with a name of NEWS.Debian.
OPTIONS -k, --keep
Keep the original name of the upstream changelog. This will be accomplished by installing the upstream changelog as changelog, and
making a symlink from that to the original name of the changelog file. This can be useful if the upstream changelog has an unusual
name, or if other documentation in the package refers to the changelog file.
-Xitem, --exclude=item
Exclude upstream changelog files that contain item anywhere in their filename from being installed.
upstream
Install this file as the upstream changelog.
SEE ALSO debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
11.1.6ubuntu2 2018-05-10 DH_INSTALLCHANGELOGS(1)