i had a file where lines appear to be broken when they shouldn't
eg
Line 1. kerl abc sdskd sdsjkdlsd sdsdksd \
Line 2. ksdkks sdnjs djsdjsd
i can do a shift join to combine the lines but i there are plenty of files with this issue
Line 1. kerl abc sdskd sdsjkdlsd sdsdksd ksdkks sdnjs... (6 Replies)
It sounds a bit confusing but what I have is a text file like the example below (without the Line1, Line2, Line3 etc. of course) and I want to move every group of characters into a new line after each space.
Example of text file;
line1 .digg-widget-theme2 ul { background: rgb(0, 0, 0) none... (7 Replies)
...when the lines use both a colon and commas to separate the parts you want read as information.
The first version of this script used cut and other non-Bash-builtins, frequently, which made it nice and zippy with little more than average processor load in GNOME Terminal but, predictably, slow... (2 Replies)
I'm kinda stuck on this one, I have 7 files with 30.000 lines/file like this
050 0.023 0.504336
050 0.024 0.529521
050 0.025 0.538908
050 0.026 0.537035
I want to find the mean line by line of the third column from the files named like this:
Stat-f-1.dat .... Stat-f-7.dat
Stat-s-1.dat... (8 Replies)
Hi,
I have the following data:
This this DT 0.99955 0 4
is be VBZ 1 5 7
sentence sentence NN 0.916667 8 16
one one NN 0.545078 17 20
. . Fp 1 20 21
This this DT 0.99955 22 26
is be VBZ 1 27 29
the the DT 1 30 33
second 2 JJ 0.930556 34 40
sentence sentence NN 0.916667 41 49... (1 Reply)
Hello to all
May you help me with a sed or awk script to fix the text below please.
I have a file where all lines should have 67 characters but from time to time 2 lines appear together like below.
* First column always has 15 characters
* Second column always has 32 characters
* 3rd,... (5 Replies)
I need to break the line after every 3rd semi colon(;) using Unix shell scripting
Input.txt
ABC;DEF;JHY;LKU;QWE;BVF;RGHY;
Output.txt
ABC;DEF;JHY;
LKU;QWE;BVF;
RGHY; (1 Reply)
Hi,
I have input which reads like
9089.00 ----- kl jkjjljk lkkk; (909099) 9097.00 ----- HGJJHHJ jcxkjlkjvhvlk jhdkjksdfkhfskd 898.00 ----- HHHH
I am trying to do something like this - As soon as I found pattern match "XYZ.00-----" it will insert a line break to the input and will go to... (3 Replies)
I have been searching and trying to come up with an awk that will perform the following on a
converted text file (original is a pdf).
1. Since the first two lines are (begin with) text they are removed
2. if $1 is a number then all text is merged (combined) into one line until the next... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT CENTOS
ppi::statement::break
PPI::Statement::Break(3) User Contributed Perl Documentation PPI::Statement::Break(3)NAME
PPI::Statement::Break - Statements which break out of normal statement flow
SYNOPSIS
last;
goto FOO;
next if condition();
return $foo;
redo;
INHERITANCE
PPI::Statement::Break
isa PPI::Statement
isa PPI::Node
isa PPI::Element
DESCRIPTION
"PPI::Statement::Break" is intended to represent statements that break out of the normal statement flow control. This covers the basic
types 'redo', 'goto', 'next', 'last' and 'return'.
METHODS
"PPI::Statement::Break" has no additional methods beyond the default ones provided by PPI::Statement, PPI::Node and PPI::Element.
However, it is expected to gain methods for identifying the line to break to, or the structure to break out of.
TO DO
- Add the methods to identify the break target
- Add some proper unit testing
SUPPORT
See the support section in the main module.
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT
Copyright 2001 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.16.3 2011-02-26 PPI::Statement::Break(3)