Dear all,
Please advise what approach can remove all line break from a text file?
e.g.
Source file:
A
B
C
Target file:
A, B, C
Thanks,
Rock (5 Replies)
*Note, I thought I was in Shell Programming and Scripting Q&A and posted in a wrong forum. To avoid confusion and to inform people that I'm not trying to "spam" the forums, I'm adding this note up top*
Hi Everyone thanks in advance for any input you can provide on the following question! I'm... (2 Replies)
hi All,
Have a doubt in ksh..Am not familiar with arrays but i have tried out a script..
plzzzzz correct me with the script
My i/p File is:
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 192.168.2.2)
(Port = 1525)
)
)
(CONNECT_DATA = (SID = TESTDB1)
)
)
... (7 Replies)
Hello All,
I am new to unix scripting, I have an urgent issue
Is it possible to do a group by on the last column and then a page break on the text file.
For example I have a text file, below is the example data
STRT 2154081~VA ~23606 ~TM14~8506~1485
STRT 2130893~VA ~23602 ~TM15~8602~1586... (4 Replies)
I've been trying this, and can't get it right. I want to put a line break before a word, but only if it's *not* the last word in the line. So if the break work was "fish," then...
We want to fish tomorrow
...would become...
We want to
fish tomorrow
...but this line would remain... (3 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 cannot seem to get this to work..
I have a file which has about 100 lines, and there is no end of line (line break \n) at the end of each line, and this is causing problem when i paste them into an application.
the file looks like this
this is a test
that is a test
balblblablblhblbha... (1 Reply)
So I'm in a Unix class and our assignment was to go into VI and write a script to make this file tree. At the end of it, I'd like it to echo "This is the file tree you've created" then a line break, then . But I'm not sure as to who to do it. Is there a way for when I run it (./filesystem), the... (4 Replies)
I'm trying to make a script that says
echo This is the date:
I did this
echo This is the date:
date
and it worked. But I need them both on the same line. And putting date on the echo line doesn't work. Is there a way to do so? (1 Reply)
Hello everyone!
I'm trying to make the below file1 look like file2, can anyone help?
Basically I just hit backspace on every line that starts with a number.
Thanks!
file1:
THIS#IS-IT1
4
THIS#IS-IT2
3
THIS#IS-IT3
2
THIS#IS-IT4
1
Result > file2: (4 Replies)
Discussion started by: demmel
4 Replies
LEARN ABOUT DEBIAN
swf::textfield
.::SWF::TextField(3pm) User Contributed Perl Documentation .::SWF::TextField(3pm)NAME
SWF::TextField - SWF TextField class
SYNOPSIS
use SWF::TextField;
$textfield = new SWF::TextField([$flags]);
DESCRIPTION
Unlike SWF::Text objects, TextFields cannot be rotated, scaled non-proportionally, or skewed. However, TextFields can be used as form
entries and they can use browser-defined fonts.
NOTES :
TextField is implemented into Flash since Flash3.
Most of features for TextFields are available since Flash4.
Simple HTML-tags in TextField are possible since Flash5.
METHODS
new SWF::TextField([$flags]);
Creates a TextField object whose behaviour is dictated by "flags" (see also SWF::Constants):
SWFTEXTFIELD_NOEDIT: Non-editable Textfiled
SWFTEXTFIELD_PASSWORD: Obscure user input with astricts.
SWFTEXTFIELD_DRAWBOX: Draw a border around TextField
SWFTEXTFIELD_MULTILINE: TextFiels may contain multiple lines
SWFTEXTFIELD_WORDWRAP: Warp text when text reaches TextField border
SWFTEXTFIELD_NOSELECT: TextField is not selected when user clicks on it
SWFTEXTFIELD_ALIGN_LEFT: Align text to the left
SWFTEXTFIELD_ALIGN_RIGHT: Align text to the right
SWFTEXTFIELD_ALIGN_CENTER: Align text to the center
SWFTEXTFIELD_ALIGN_JUSTIFY: Justify text
SWFTEXTFIELD_HTML: Add HTML markup string
SWFTEXTFIELD_HASLENGTH:
SWFTEXTFIELD_USEFONT: Want to embed font
SWFTEXTFIELD_AUTOSIZE:
Flags may be combined with the bitwise OR operation. For example:
my $t = new SWF::TextField(SWFTEXTFIELD_MULTILINE | SWFTEXTFIELD_WORDWRAP);
$textfield->addString($string)
$textfield->addUTF8String($UTF8string)
Add $string to TextField. Text is appended to the existing text.
$textfield->align($alignment)
$textfield->setAlignment($alignment)
Set the alignment of the text in the textfield. Possible values are
SWFTEXTFIELD_ALIGN_LEFT
SWFTEXTFIELD_ALIGN_RIGHT
SWFTEXTFIELD_ALIGN_CENTER
SWFTEXTFIELD_ALIGN_JUSTIFY
By default a SWF::TextField ist left aligned.
$textfield->setBounds($width, $height)
Sets the width and height of the textfield.
$textfield->setColor($red, $green, $blue [, $alpha])
Set the color of the text. An 8 bit value for each parameter. You can use the hex or decimal notation. Even mixed.
$tf->setColor(0xcc,0,0x33);
$tf->setColor(204,0,51,255);
$textfield->setFont($font)
Sets an SWF::Font object -$font- to be used in the TextField.
$textfield->setPadding($padding)
Set TextField padding.
$textfield->setHeight($height)
Set the height of font in your textfield.
$textfield->setIndentation($indentation)
Set the indentation of the first line of a paragraph.
$textfield->setLeftMargin($left)
Sets the left margin of the textfield.
$textfield->setRightMargin($right)
Sets the right margin of the textfield.
$textfield->setMargins($left, $right)
Sets left and right margins of $textfield.
$textfield->setLineSpacing($linespacing)
Sets the space between lines.
$textfield->setName($name)
$textfield->setVariableName($name)
Assigns a name to the TextField which could be used to reference the TextField within ActionScript.
$textfield->addChars($string)
$textfield->addUTF8Chars($UTF8string)
Adds characters to a font that will be available within a textfield.
$textfield->setFlags($flags)
Set TextField behaviour by "flags" (see above new SWF::TextField) For example:
$textfield->setFlags(SWFTEXTFIELD_PASSWORD);
$textfield->setLength($length)
Sets limit for user input size to $length.
$textfield->setFieldHeight($height)
Sets height limit for visible part of text field. If $height is set to 0, the height is calculated by used font, see setHeight()
method.
AUTHOR
Soheil Seyfaie (soheil at users.sourceforge.net).
SEE ALSO
SWF, SWF::Action, SWF::Button, SWF::Constants, SWF::DisplayItem, SWF::Font, SWF::Movie, SWF::MovieCip, SWF::Text
perl v5.14.2 2011-10-26 .::SWF::TextField(3pm)