02-07-2014
I don't understand what you want. You say you want to get something starting with SRC_ that appears in every line in your file, but since SRC_ doesn't appear in the first line, there obviously is no such string.
Please explain what you are trying to do and show the desired output corresponding to your sample input.
10 More Discussions You Might Find Interesting
1. Solaris
Hi how do i grep only a part of the line from a file from all the lines.
file:
asdfgh 543212376 nag
lkjh abhilash 543757858
How do i grep and print only 543212376 and 543757858
Can i grep something like 543* and print only that. (3 Replies)
Discussion started by: 123nagendrabhi
3 Replies
2. Shell Programming and Scripting
Hi,
In a file FILE, there is a line like this one
MOLECULE C2 H2
I want to extract "C2 H2". I can do it in two step in a script :
VARIABLE="`grep MOLECULE FILE`" # Assign "MOLECULE C2 H2"
VARIABLE=`echo ${VARIABLE/"MOLECULE "}` # Remove "MOLECULE ".
Then,
$echo $VARIABLE
gives
C2... (6 Replies)
Discussion started by: tipi
6 Replies
3. Shell Programming and Scripting
How do I print only the values of the variables from set or env.
For example I have the lines
USER=USER
XYZ='text'
SHELL=/bin/bash
How do I print only the part after or starting from =
Let's say I have those lines in a list X
If I run
Y = echo $X | grep -o "=*$"
Y won't contain... (3 Replies)
Discussion started by: Transsive
3 Replies
4. Shell Programming and Scripting
Hi,
I have a problem to use grep in my script .
If I want to grep the file for example : PTWO9089.txt
The code below works .
grep ^PONE
But, I dont know on how to grep the file like this 9066PTWO.txt
I'll try to use this code :
grep PTWO^ ,but it doesn't work.
For your info, the... (4 Replies)
Discussion started by: badbunny9316
4 Replies
5. UNIX for Dummies Questions & Answers
Hello All. I have an output file which contains the phrase "Total DFT Energy =" and then a number. This occurs many times in the output file, and what I want is to pipe the numbers (which are all different) to a file so I can plot them. How do I grep "Total DFT Energy =" and then get the numbers... (3 Replies)
Discussion started by: EinsteinMcfly
3 Replies
6. Shell Programming and Scripting
Hi,
Suppose,
DBconnection=jdbc: oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.x)(PORT=YYYY))(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=project_db1)))
This is a part of a file <filename> . I Need to get the value of SERVICE_NAME from this line…
The... (4 Replies)
Discussion started by: Dpu
4 Replies
7. Shell Programming and Scripting
Hi I just started on GNU Grep with regex and am finding it very challenging and need to ask for help already...
here is the problem, I have a page (MYFILE) which consists of the following....
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden"... (2 Replies)
Discussion started by: noobie74645
2 Replies
8. UNIX for Dummies Questions & Answers
<exp code="12556a" message="ok, fine4" displayMessage="jksdfj ksd" \>
<exp code="123456a" message="ok, 2fine" displayMessage="jksdfj ksd" \>
<exp code="12dfgda" message="1ok, fine" displayMessage="jksdfj ksd" \>
now I want to cut code attribute and message attribute, such as ... (2 Replies)
Discussion started by: vincent_W
2 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
I need some help. I would like to read in a text file.
Take a variable such as ROW-D-01, compare it to what's in one line in the text file such as PROD/VM/ROW-D-01 and only input PROD/VM into a variable without the /ROW-D-01.
Is this possible? any help is appreciated. (2 Replies)
Discussion started by: xChristopher
2 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)