10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Input file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 (6 Replies)
Discussion started by: Sagar Singh
6 Replies
2. Shell Programming and Scripting
In the below perl I am trying to extract and print the values AF1=, the GT value, and F or QUAL diveded by 33 (rounded to the nearest whole #). The GT value is at the end after the GT:PL so all the possibilities are read into a hash h, then depending on the value that is in the line the... (1 Reply)
Discussion started by: cmccabe
1 Replies
3. Shell Programming and Scripting
Gents,
I am trying to delete all lines which start with "H" character, but keeping the fist header. Example In the input file I will delete all lines starting from line 8 which contents character "H" to the end of the file.
I try
sed '8,10000{/^H/d;}' file
But as don't know the end... (1 Reply)
Discussion started by: jiam912
1 Replies
4. UNIX for Dummies Questions & Answers
I'm trying to grep lines where the digits at the end of each line are greater than digits. Tried this but it will only allow me to specify 2 digits. Any ideas would greatly be appreciated. grep -i '\<\{3,4,5\}\>' file
---------- Post updated at 05:58 PM ---------- Previous update was at 05:41... (1 Reply)
Discussion started by: jimmyf
1 Replies
5. Shell Programming and Scripting
Hi,
I've spent some time researching for this but can't seem to find a solution. I have a file like this
1234|Test|20101111|18:00|19:00There will be multiple lines in the file with the same kind of format. For every line I need to make it this
1234|Test|20101111|18:00|19:00||create... (5 Replies)
Discussion started by: giles.cardew
5 Replies
6. Shell Programming and Scripting
This is what I want to do. I want to write a script that reads each line (of the highlighted file below) and add a specific number of blank lines (sometime 2, 3 or 5 lines) at the end of each line while copying that line. For example, here is the input.
The sky is blue.
I like to eat.
I like... (19 Replies)
Discussion started by: Ernst
19 Replies
7. Programming
i am very new to Perl. i am using Ubuntu. i have a string call $string that contains following words "new line". i also have a data file as follows.
djfibjbet
etitrbjijbtr rrge rgjierjegjeri
jerijg
kijij jijij
i want to write my new line to my data file as follows.
djfibjbet... (3 Replies)
Discussion started by: usustarr
3 Replies
8. UNIX for Advanced & Expert Users
Hi
I am getting a source file where the columns are seperated by comma and double Quotes
Eg1 : "AAA","BBB","CCCC"
in the same source file i am also getting few lines where my last columns double quotes are ending in its next line or the next next line
Eg2: "AAA","BBB","CCC
CC"... (9 Replies)
Discussion started by: laxmi131
9 Replies
9. Shell Programming and Scripting
I'm sure this will be an easy question for you experts out there, but I have been searching the forum and working on this for a couple hours now and can't get it right.
I have a very messy data file that I am trying to tidy up - one of the issues is some records are split into multiple lines: ... (4 Replies)
Discussion started by: tink
4 Replies
10. Shell Programming and Scripting
--------------------------------------------------------------------------------
Have to check in a file that the lines starting with 620 and 705
are ending at same posiotin.
82012345
62023232323
70523949558
62023255454
9999
In the above lines, i have to check the lines starting... (1 Reply)
Discussion started by: senthil_is
1 Replies
Dpkg::Changelog::Entry(3) libdpkg-perl Dpkg::Changelog::Entry(3)
NAME
Dpkg::Changelog::Entry - represents a changelog entry
DESCRIPTION
This object represents a changelog entry. It is composed of a set of lines with specific purpose: an header line, changes lines, a trailer
line. Blank lines can be between those kind of lines.
FUNCTIONS
my $entry = Dpkg::Changelog::Entry->new()
Creates a new object. It doesn't represent a real changelog entry until one has been successfully parsed or built from scratch.
my $str = $entry->output()
"$entry"
Get a string representation of the changelog entry.
$entry->output($fh)
Print the string representation of the changelog entry to a filehandle.
$entry->get_part($part)
Return either a string (for a single line) or an array ref (for multiple lines) corresponding to the requested part. $part can be
"header, "changes", "trailer", "blank_after_header", "blank_after_changes", "blank_after_trailer".
$entry->set_part($part, $value)
Set the value of the corresponding part. $value can be a string or an array ref.
$entry->extend_part($part, $value)
Concatenate $value at the end of the part. If the part is already a multi-line value, $value is added as a new line otherwise it's
concatenated at the end of the current line.
$is_empty = $entry->is_empty()
Returns 1 if the changelog entry doesn't contain anything at all. Returns 0 as soon as it contains something in any of its non-blank
parts.
$entry->normalize()
Normalize the content. Strip whitespaces at end of lines, use a single empty line to separate each part.
my $src = $entry->get_source()
Return the name of the source package associated to the changelog entry.
my $ver = $entry->get_version()
Return the version associated to the changelog entry.
my @dists = $entry->get_distributions()
Return a list of target distributions for this version.
$fields = $entry->get_optional_fields()
Return a set of optional fields exposed by the changelog entry. It always returns a Dpkg::Control object (possibly empty though).
$urgency = $entry->get_urgency()
Return the urgency of the associated upload.
my $maint = $entry->get_maintainer()
Return the string identifying the person who signed this changelog entry.
my $time = $entry->get_timestamp()
Return the timestamp of the changelog entry.
my $str = $entry->get_dpkg_changes()
Returns a string that is suitable for usage in a "Changes" field in the output format of "dpkg-parsechangelog".
AUTHOR
Raphael Hertzog <hertzog@debian.org>.
1.16.15 2014-06-05 Dpkg::Changelog::Entry(3)