08-29-2012
Hello,
You can try this:
Quote:
echo "#chrom start end Readcount_KO Normalized_Readcount_KO Readcount_WT Normalized_Readcount_WT Fc_KO_vs_WT pvalue_KO_vs_WT FDR_KO_vs_WT Fc_WT_vs_KO pvalue_WT_vs_KO FDR_WT_vs_KO Link" > file
with ">>" append this to the file and whit ">" remove the content of the file.
This User Gave Thanks to mauregato For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
Can somebody please help me how to accomplish the following :
I have a text file called data.txt that has the following information :
M|88494-998494
M|98jd#0094
M|88394-994049
M|GFG9980#009944
and so on...
I need to replace the value of M to either "S" or "X"... (3 Replies)
Discussion started by: negixx
3 Replies
2. UNIX for Dummies Questions & Answers
I am trying to edit each line in a file. The file has several columns delimitted by '|'.
I need to take out the last two columns.
Each line starts with a unique word through which I am storing the lines in a variable and cutting the last two colums.
But, when I am echoing the line, it is... (2 Replies)
Discussion started by: chiru_h
2 Replies
3. Shell Programming and Scripting
Hi,
How can I edit a line in a file?
For example, a.txt contains:
start: 1 2 3 4
stop: a b c d
and I want to change "3" to "9"
and to add "5" after "4"
the result should be (a.txt):
start: 1 9 3 4 5
stop: a b c d
Thanks,
zed (5 Replies)
Discussion started by: zed
5 Replies
4. Shell Programming and Scripting
Hello,
I have to add the string "YES" to the end of all records of files in a dir other than the first(header) and the last(trailer) record. viz, the first and the last record in a file has to be identified and exempted from the edit.
I tried an awk script. But there seems to be no direct... (8 Replies)
Discussion started by: rogersed
8 Replies
5. UNIX for Dummies Questions & Answers
hi,
i need to remove the first column (and dash) from this text file.
Is there any unix command allowing me to do it ?
1-16
2-28
3-16
4-20
5- 8
6-32
7-19
8-16
9-27
10- 7
11-14
12-18
thanks (2 Replies)
Discussion started by: aneuryzma
2 Replies
6. Shell Programming and Scripting
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)
Discussion started by: n00ti
3 Replies
7. Shell Programming and Scripting
Hello All,
My file content is:
DROP TABLE
"FACT_WORLD";
CREATE TABLE "FACT_WORLD" (
"AR_ID" INTEGER NOT NULL,
"ORG_ID" INTEGER NOT NULL
)
DATA CAPTURE NONE
COMPRESS YES;
I want to change this file to have entries in one... (6 Replies)
Discussion started by: akash2508
6 Replies
8. Shell Programming and Scripting
Hi i have a file like this
mailboxnum 20
filename <to subsitute>
fileloaction /home/dd234/
filetype txt
in a directory i have set of files for ex:
TT45.1.2
TT45.1.3
TT45.1.4
.
.
in for loop i have to take this files and subsitute one by one
ex: (1 Reply)
Discussion started by: greenworld123
1 Replies
9. Shell Programming and Scripting
We have a huge file which has just one really large line; about 500 MB. I want to
1. Count all the occurrences of a phrase
2. Replace the phrase with another.
Trying to open it using vi has not helped as it complains that it is too large. Can any script help? Please advise.
Thank you, (12 Replies)
Discussion started by: kaushikadya
12 Replies
10. Shell Programming and Scripting
hi, could someone share a short script that would process a .txt file and do the following, for example the text file has this form
0:1.0 1:1.0 2:2.0 3:3.0 4:4.0 5:5.0 6:6.0 7:7.0 8:8.0 ... {newline}
9:9.0 10:10.0 11:11.0 12:12.0 13:13.0 14:14.0 15:15.0 16:16.0 17:17.0 ... {newline}
and I... (3 Replies)
Discussion started by: c_lady
3 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)