Hello, Im using a terminal that can configure colors and backgrounds for determinate text with format, but.... how i can put format to some text?
For example, i use:
echo "Hello my friend"
but i want as output
Hello my friend
the colors will be configured in the terminal but how i... (3 Replies)
Hi
I have a LONG ! column of text and I would like to format this into several columns.
so from this
abcd
efgh
ijkl
mnop
qrst
uvwx
yz12
to this
abcd efgh ijkl
mnop qrstu vwx
yz12 (2 Replies)
I have a file that gets created by pasting 3 files together to get the one file. The output of the 3 files follows.
sft.rtf
c3_critappdb_u5 start 04:22:20 end 08:03:41
c3_critappdb_u6 start 18:01:31 end 20:21:19
c3_critappdb_u7 start 00:02:50 end 08:30:17
c3_critappdb_u8 start 17:00:42 end... (2 Replies)
I'm new to awk and would appreciate a jump start.
I've got a text doc of people with first and last names, ages, home cities, and a phrase about the individual. I want to parse the text into fields and rows separated by tabs with the field names of - Firstname, Lastname, Age, City, Dollar... (5 Replies)
i have a text file in this format:
name1^A1^B1^
name2^A2^B2^
...
namex^Ax^Bx^
name1^AA1^
name2^AA2^
...
namex^AAx^
name1^AAA1^BBB1^
name2^AAA1^BBB2^
...
namex^AAAx^BBBx^
name1^AAAA1^
name2^AAAA2^
...
namex^AAAAx^
i want to generate a file: (2 Replies)
Hi Forum.
I'm trying to convert the following text using "sed" or "awk" or "tr" but with no luck.
From:
EDW_WHOLESALE_VORTEX
To:
__
Any help is greatly appreciated. (9 Replies)
input file test.csv has following structure.
SCHEM1.TAB1;COL1;DATATYPE;NOTNULL--
SCHEMA1.TAB1;COL2;DATATYPE;NOTNULL;WITH DEFAULT;--
....
SCHEMA1.TABn;COL1;DATATYPE;NOTNULL;WITH DEFAULT;
i started using awk but text is not tab seperated.its just ; seperated.
how to print
output... (4 Replies)
Hello,
i've got a script based on queries which generates this output into a file
cat cron_S-PostGres-ncc_license_Simpel_ActSub_per_Product
201502-b31s31i10 | MVNO | 114751 | 2017-07-19
201502-b31s31i10R60-60 | MVNO | 62115 | 2017-07-19
201511-b31s31i15 ... (5 Replies)
Discussion started by: nms
5 Replies
LEARN ABOUT OSX
ppi::document::normalized
PPI::Document::Normalized(3) User Contributed Perl Documentation PPI::Document::Normalized(3)NAME
PPI::Document::Normalized - A normalized Perl Document
DESCRIPTION
A "Normalized Document" object is the result of the normalization process contained in the PPI::Normal class. See the documentation for
PPI::Normal for more information.
The object contains a version stamp and function list for the version of PPI::Normal used to create it, and a processed and delinked
PPI::Document object.
Typically, the Document object will have been mangled by the normalization process in a way that would make it fatal to try to actually DO
anything with it.
Put simply, never use the Document object after normalization. YOU HAVE BEEN WARNED!
The object is designed the way it is to provide a bias towards false negatives. A comparison between two ::Normalized object will only
return true if they were produced by the same version of PPI::Normal, with the same set of normalization functions (in the same order).
You may get false negatives if you are caching objects across an upgrade.
Please note that this is done for security purposes, as there are many cases in which low layer normalization is likely to be done as part
of a code security process, and false positives could be highly dangerous.
METHODS
new
The "new" method is intended for use only by the PPI::Normal class, and to get ::Normalized objects, you are highly recommended to use
either that module, or the "normalized" method of the PPI::Document object itself.
version
The "version" accessor returns the PPI::Normal version used to create the object.
functions
The "functions" accessor returns a reference to an array of the normalization functions (in order) that were called when creating the
object.
equal $Normalized
The "equal" method is the primary comparison method, taking another PPI::Document::Normalized object, and checking for equivalence to it.
The "==" operator is also overload to this method, so that you can do something like the following:
my $first = PPI::Document->load('first.pl');
my $second = PPI::Document->load('second.pl');
if ( $first->normalized == $second->normalized ) {
print "The two documents are equivalent";
}
Returns true if the normalized documents are equivalent, false if not, or "undef" if there is an error.
SUPPORT
See the support section in the main module.
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT
Copyright 2005 - 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.2 2011-02-25 PPI::Document::Normalized(3)