Hello:
I have the following HTML table:
I would like to add a button with an event to every <td> element with a code, like the following:
Note that I'm not asking how to parse the HTML. Instead, I would like to know how to replace every \t\t\t<td>x</td> line by \t\t\t<td><button onclick="reset(x)">x</button></td>, where x is the code number.
I need to do it with a command-line text editor without input from the user, because I have many files like this one and my idea is to edit all of them using find with the -exec option.
This would be a simple task with ex or ed if I just had to replace the same concurrence. But in this case, I need to keep the code in every replacement. That's what I'm struggling with. I'm afraid I'll need advanced tools like awk and I honestly don't know how to do it.
How can I add the button with the event to the table cells?
Thanks in advance.
Greetings,
I have a file: hostnames.txt which has -
# cat hostnames.txt
machine1
machine2
I need the output to be saved to a variable as:
HOSTNAMELIST=machine1,machine2
Please advise.
Thanks,
Chiru (3 Replies)
Hi,
Is there a way to use cp in such a way that when a file is copied to a destination, the required destination folders are automatically created with the proper permissions, and the resulting copied file has the same attributes as the original. For example if I copied... (1 Reply)
Hi Guys
I need to have a shell script which reads a log file and insert a part of each line into the database. Some sample lines in the file are as below.
20091112091359 MED_RQACK : user_data=60173054304,100232120,20091112091359,;ask_status=0;ask_reason=OK;msg_id=20091112091319... (5 Replies)
Hello,
I'm wondering where I could go to learn how to edit file sections that cross multiple lines. I'm wanting to write scripts that will add Gnome menu entries for all users on a system for scripts I write, etc. I can search an replace simple examples with sed, but this seems more complex.
... (8 Replies)
Hi Forum.
I've tried to search online for a solution but I cannot seem to find one.
Hopefully, someone here can help me out. I would appreciate it.
Input file abc.txt:
$InputFile_Borrower=CMTSLST\EDW_COMMERCIAL_MTGE_BORROWER_dat.lst... (14 Replies)
Greetings,
I am using tcsh to write a script that will replace the numbers in a file with a single number, the caveat is that this file has blank lines which are necessary for another step down the line so I need to preserve the blank lines. I have tried sed and awk but both will collapse the... (1 Reply)
Hi all,
I need to write an automated bash shell script which performs such operations:
1. Grep the header of everyline with the initial of "T" in "FILE_A"
2. Perform a for loop,
Count the numbers of comma in the line of code,
if (no. of comma < 17)
ADD the comma until 17;
... (2 Replies)
Hi,
I lack the utter fundamentals on how to craft an awk script.
I have hundreds of text files that were mangled by .doc format so all the lines are broken up so I need to join all of the lines of text into a single line. Normally I use vim command "ggVGJ" to join all lines but with so many... (3 Replies)
Hi
I have a file with the following structure
"VATTENFALL GLOBAL" "Vattenfall Tray"
"BARCLAYS BANK LONDON" "Capula"
"P1 AGEAS GLOBAL COMPANY" "AAC - Optiver"
The requirement is like this
1) Take 2 input... (16 Replies)
Hi,
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa
bbbbbb
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
Discussion started by: wenclu
6 Replies
LEARN ABOUT DEBIAN
vend::table::editor
Vend::Table::Editor(3pm) User Contributed Perl Documentation Vend::Table::Editor(3pm)NAME
Vend::Table::Editor -- Interchange do-all HTML table editor
SYNOPSIS
[table-editor OPTIONS]
[table-editor OPTIONS] TEMPLATE [/table-editor]
DESCRIPTION
The [table-editor] tag produces an HTML form that edits a database table or collects values for a "wizard". It is extremely configurable as
to display and characteristics of the widgets used to collect the input.
The widget types are based on the Interchange "[display ...]" UserTag, which in turn is heavily based on the ITL core "[accessories ...]"
tag.
The "simplest" form of "[table-editor]" is:
[table-editor table=foo]
A page which contains only that tag will edit the table "foo", where "foo" is the name of an Interchange table to edit. If no "foo" table
is "defined", then nothing will be displayed.
If the "mv_metadata" entry "foo" is present, it is used as the definition for table display, including the fields to edit and labels for
sections of the form. If "ui_data_fields" is defined, this cancels fetch of the view and any breaks and labels must be defined with
"ui_break_before" and "ui_break_before_label". More on the view concept later.
A simple "wizard" can be made with:
[table-editor
wizard=1
ui_wizard_fields="foo bar"
mv_nextpage=wizard2
mv_prevpage=wizard_intro
]
The purpose of a "wizard" is to collect values from the user and place them in the $Values array. A next page value (option mv_nextpage)
must be defined to give a destination; if mv_prevpage is defined then a "Back" button is presented to allow paging backward in the wizard.
perl v5.14.2 2011-03-09 Vend::Table::Editor(3pm)