Hi I have a text file that I need use as a osascript to format some Excel files. My commands are working between the osascript and Excel but what I would like to do is format the text file with an array.
Is there a way to expand the array variables into another text file while still retaining the original formatting?
I cant run the below code in the shell until the array has been expanded
Below is the source filelist_array
I hope that I have explained myself clearly. What I am essentially triyng to do is format a proper command to run as an osascript.
Thank you very much for your help.
Hi,
I wish to store $string1 in $string1array a character in each array element.
Then i wish to echo the entire array to the screen so that it reads as the normal string again.
I have been trying with the code below but does not work. Please help...
To put string into array:
... (5 Replies)
I am facing a strange error while creating posix threads:
Given below are two snippets of code, the first one works whereas the second one gives a garbage value in the output.
Snippet 1
This works:
--------------
int *threadids;
threadids = (int *) malloc (num_threads * sizeof(int));
... (4 Replies)
Hi All,
I'm writing a nagios check that will see if our ldap servers are in sync...
I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable
so...eg...let take the single array... (1 Reply)
Hi Everyone,
#!/usr/bin/perl
use strict;
use warnings;
my @test=("a;b;qqq;c;d","a;b;ggg;c;d","a;b;qqq;c;d");
would like to split the @test array into two array:
@test1=(("a;b;qqq;c;d","a;b;qqq;c;d"); and @test2=("a;b;ggg;c;d");
means search for 3rd filed.
Thanks
find the... (0 Replies)
Hi everyone
I have one question about using array in perl. let say I have several log file in one folder.. example
test1.log
test2.log
test3.log
and the list goes on..
how to make an array for this file? It suppose to detect log file in the current directory and all the log file will... (3 Replies)
I have an array and two variables as below,
I need to check if $datevar is present in $filename.
If so, i need to replace $filename with the values in the array.
I need the output inside an ARRAY
How can this be done.
Any help will be appreciated. Thanks in advance. (2 Replies)
ok, so here is the issue, I have 2 arrays.
I need to be able to create a loop that will find ${ARRAY1 in the text doc, and replace it with ${ARRAY2 then write the results. I already have that working. The problem is, I need it to do that same result across however many items are in the 2... (2 Replies)
Trying to do some control flow parsing based on the index postion of an array member. Here is the pseudo code I am trying to write in (preferably in pure bash) where possible. I am thinking regex with do the trick, but need a little help.
pesudo code
if == ENDSINFIVEINTS ]]; then
do... (4 Replies)
Hi experts,
I have two arrays one has the file paths to be searched in , and the other has the files to be serached.For eg
searchfile.dat will have
abc303
xyz123
i have to search for files that could be abc303*.dat or for that matter any extension . abc303*.dat.gz
The following code... (2 Replies)
hello,
i need a bit of help on how to do this effectively in bash without a lot of extra looping or massive switch/case
i have a long array of M elements and a short array of N elements, so M > N always. M is not a multiple of N.
for case 1, I want to stretch N to fit M
arrayHuge
H = (... (2 Replies)
Discussion started by: f77hack
2 Replies
LEARN ABOUT DEBIAN
excel::template::container::format
Excel::Template::Container::Format(3pm) User Contributed Perl Documentation Excel::Template::Container::Format(3pm)NAME
Excel::Template::Container::Format - Excel::Template::Container::Format
PURPOSE
To format all children according to the parameters
NODE NAME
FORMAT
INHERITANCE
Excel::Template::Container
ATTRIBUTES
Boolean attributes should be set to 1, 0, true, or false.
Color values can be the color name or the color index. See "COLOURS IN EXCEL" in Spreadsheet::WriteExcel
o align
Set to either left, center, right, fill, or justify. Default is left. See also valign.
o bg_color
Set to a color value. Default is none.
o bold
This will set bold to on or off, depending on the boolean value.
o border
Set the border for all for edges of a cell. Also see bottom, top, left, and right. Valid values are 0 - 7.
See "set_border()" in Spreadsheet::WriteExcel
o border_color
Sets the color value for the border. See also border, top_color, bottom_color, left_color and right_color.
o bottom
See border.
o bottom_color
See border_color
o color
This will set the color of the text, depending on color value. Default is black.
o fg_color
Set to a color value. This color will be used in foreground of some patterns. See color to change the color of text. Also see bg_color
and pattern.
o font
This will sent the font face. Default is Arial.
o font_outline
This will set font_outline to on or off, depending on the boolean value. (q.v. OUTLINE tag)
o font_shadow
This will set font_shadow to on or off, depending on the boolean value. (q.v. SHADOW tag). This only applies to Excel for Macintosh.
o font_strikeout
This will set font_strikeout to on or off, depending on the boolean value. (q.v. STRIKEOUT tag)
o hidden
This will set whether the cell is hidden to on or off, depending on the boolean value.
o indent
Set the indentation level for a cell. Positive integers are allowed.
o italic
This will set italic to on or off, depending on the boolean value. (q.v. ITALIC tag)
o left
See border.
o left_color
See border_color.
o num_format
Set to the index of one of Excel's built-in number formats. See "set_num_format()" in Spreadsheet::WriteExcel
o pattern
Set to an integer, 0 - 18. Sets the background fill pattern of a ell. Default is 1, solid.
o right
See border.
o right_color
See border color.
o rotation
Set the rotation of the text in a cell. The rotation can be any angle in the range -90 to 90 degrees. The angle 270 is also supported.
This indicates text where the letters run from top to bottom.
o shrink
A boolean value. If true, text will shrink to fit a cell.
o size
This will set the size of the font. Default is 10. Unless a row height is specifically set, the row will grow taller as necessary.
o text_justlast
A boolean value to justify the last line. Only applies to Far Eastern versions of Excel.
o text_wrap
A boolean value. When set to true, text will wrap in a cell instead of crossing over into empty cells. If the row height is not set,
the row will grow taller to accommodate the wrapping text.
o top
See border.
o top_color
See border_color
o valign
Set to top, vcenter, bottom, or vjustify. Default is vcenter. See also align.
CHILDREN
None
EFFECTS
None
DEPENDENCIES
None
USAGE
<format bold="1">
... Children here
</format>
In the above example, the children will be displayed (if they are displaying elements) in a bold format. All other formatting will remain
the same and the "bold"-ness will end at the end tag.
AUTHOR
Rob Kinyon (rob.kinyon@gmail.com)
SEE ALSO
BOLD, HIDDEN, ITALIC, OUTLINE, SHADOW, STRIKEOUT
perl v5.14.2 2012-04-29 Excel::Template::Container::Format(3pm)