I am iterating record by record through a file as below,
A,B
A,C
A,D
B,E
B,F
E,G
E,H
The same file should look like in the final output as below,
A,B
B,E
E,G
E,H
B,F
A,C
A,D (10 Replies)
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)
Hi ,
This is my first thread ; facing some issues withmy sed script
I need to insert the code from my log file which is between two keywords.
content is like this ........
log
############################
log1 log2
231 "Ban" "tom" and the line one of the cross line
friend... (2 Replies)
Hi All ,
Given a file , I need to delete , modify and insert lines matching certain patterns in that file using shell scripting.
e.g. If a file FILE1 has following content :
CUST.ABC.DEF = CUST.ABC.DEF * CUST.ABC.DEF
PRINTF(CUST.ABC.DEF)
CUST.ABC.DEF = mid(CUST.ABC.DEF,10.34)... (5 Replies)
Hi,
For the text file let us say t.txt having the statements as below.
filename : t.txt.
Contents :
This is first string1
This is first string2
This is first string3
The output of the file should have newline. How to introduce the new line so that the output be as follows
... (5 Replies)
Hello,
I have two text files (txt1 and txt2). txt1 contains many lines with a single number in each line. txt2 (xml format) contains information about the numbers given in txt1. I need to insert one line in txt2 within the scope of each number taken from txt1.
Sample problem:
txt1:
12
23... (1 Reply)
I have a huge file with record length around 5000 characters.
There is an ETL tool datastage which is writing this data to the file(AIX server). At position 4095 i have seen NULL Character(^@).
when i am using this command "head -1 file_nm | sed 's/\000//g'" --- the output is displaying... (3 Replies)
Hi There,
I am trying to load data from a csv file into a DB during our DB migration phase. I am successfully able export all data into a .csv file but those have to rewritten in terms insert statement which will allow for further population of same data in different DB
My exiting csv record... (6 Replies)
I have a script which is extracting data from a database in an excel file in below given format,
date_time calling_app1 count of requests
date calling_app x 34
date calling_app y 1034
I want to write a script which will write data into a file like this ... (3 Replies)
Discussion started by: TNT47
3 Replies
LEARN ABOUT DEBIAN
html::widget::container
HTML::Widget::Container(3pm) User Contributed Perl Documentation HTML::Widget::Container(3pm)NAME
HTML::Widget::Container - Container
SYNOPSIS
my $container = $form->element('foo');
my $field = $container->field;
my $error = $container->error;
my $label = $container->label;
my $field_xml = $container->field_xml;
my $error_xml = $container->error_xml;
my $javascript_xml = $container->javascript_xml;
my $xml = $container->as_xml;
# $xml eq "$container"
my $javascript = $container->javascript;
DESCRIPTION
Container.
METHODS
as_xml
Return Value: $xml
_build_element
Arguments: $element
Return Value: @elements
Convert $element to HTML::Element object. Accepts arrayref.
If you wish to change the rendering behaviour of HTML::Widget; specifically, the handling of elements which are array-refs, you can specify
"container_class" in HTML::Widget::Element to a custom class which just overrides this function.
build_single_element
Arguments: $element
Return Value: $element
Convert $element to HTML::Element object.
Called by "_build_element".
If you wish to change the rendering behaviour of HTML::Widget; specifically, the handling of an individual element, you can override this
function.
build_element_error
Arguments: $element
Return Value: $element
Called by "build_single_element".
If you wish to change how an error is rendered, override this function.
build_element_label
Arguments: $element, $class
Return Value: $element
Called by "build_single_element".
If you wish to change how an element's label is rendered, override this function.
The $class argument is the original class of the element, before "build_element_error" was called.
as_list
Return Value: @elements
Returns a list of HTML::Element objects.
element
field
Arguments: $element
"field" is an alias for "element".
element_xml
field_xml
Return Value: $xml
"field_xml" is an alias for "element_xml".
error
Arguments: $error
Return Value: $error
error_xml
Return Value: $xml
javascript
js
Arguments: $javascript
Return Value: $javascript
"js" is an alias for "javascript".
javascript_element
Return Value: $javascript_element
Returns javascript in a script HTML::Element.
javascript_xml
js_xml
Return Value: $javascript_xml
Returns javascript in a script block.
"js_xml" is an alias for "javascript_xml".
AUTHOR
Sebastian Riedel, "sri@oook.de"
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2007-03-01 HTML::Widget::Container(3pm)