09-20-2006
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear UNIX experts:
Hi, I have a text file which the contents are arranged vertically down, line by line.
How do use a loop (I think) to make it arrange in vertical arrangement with a tab delimitated and write to a new file?
Eg: of source file
Hello World
Good-day
Thanks
Welcome
The... (8 Replies)
Discussion started by: merry susana
8 Replies
2. UNIX for Dummies Questions & Answers
I have these following data:
Home Tom
Member List
100 Yes
200 No
Home Tom
Member List
1 No
2 Yes
Home Tome
Member List
3 No
400 Yes
I want my data to be consistants like this: (4 Replies)
Discussion started by: bobo
4 Replies
3. UNIX for Dummies Questions & Answers
I have a data file with hundreds of lines: I want to place a YES right below the line that say mydata....can someone please help! on the left is my the original data on the right the data format need to be:
left > Right
mydata > mydata
yes > yesno > no
mydata > mydata... (12 Replies)
Discussion started by: bobo
12 Replies
4. UNIX for Dummies Questions & Answers
Can anyone help me on this. I have a file that looks like this:
color red green blue
color pink yellow
number one two
gender male
gender female
The output would look like this:
color red green blue pink yellow
number one two
gender male female
I have over 5000 rows and i dont want... (5 Replies)
Discussion started by: kharen11
5 Replies
5. Shell Programming and Scripting
Hi,
I have the following 'sorting' problem.
Given the input file:
a:b:c:12:x:k
s:m:d:8:z:m
a:b:c:1:x:k
p:q:r:23:y:m
a:b:c:3:x:k
p:q:r:1:y:m
the output I expect is:
a:b:c:1:x:k
p:q:r:1:y:m
s:m:d:8:z:m
What happened here is I grouped together lines having the same values for... (7 Replies)
Discussion started by: Abhishek Ghose
7 Replies
6. Shell Programming and Scripting
Dear Frineds,
I have a flat file as follows
ABCD
ABDCWQE
POIERAS
ADSGASGFG
GHJKFHD
XBDFGHFGDH
POIU
IJPFG
AFGJFPGOU
A;DGUPGU
SFSDFDSDFHDSF
SDFGHSFDH
I want this column to be converted into row like follows
ABCD, ABDCWQE, POIERAS, ADSGASGFG, GHJKFHD, XBDFGHFGDH (6 Replies)
Discussion started by: anushree.a
6 Replies
7. Shell Programming and Scripting
Input file
<data id>="1">\
</data>\
<data id>="2">\
</data>\
<code>="1" target="2">\
</code>\
<data id>="1">\
</data>\
<data id>="2">\
</data>\
<code>="1" target="2">\
</code>\
<data id>="1">\
</data>\
<data id>="2">\
</data>\
<code>="1" target="2">\
</code>\ (2 Replies)
Discussion started by: cpp_beginner
2 Replies
8. Shell Programming and Scripting
Input file:
<symbol>Q9Y8G1</symbol>
<name>Q9Y8G1_EMENI</name>
<symbol>Q6V953</symbol>
<symbol>Q5B8K1</symbol>
<name>Q6V953_EMENI</name>
<symbol>G1A416</symbol>
<name>G1A416_9FUNG</name>
<symbol>D4N894</symbol>
<name>D4N894_PLEER</name>
<symbol>B0FFU4</symbol>... (13 Replies)
Discussion started by: cpp_beginner
13 Replies
9. UNIX for Advanced & Expert Users
Hi
I have a huge problem to solve ASAP. Can someone please help!!!
My format is arranged in this format: It has three columns.
LOGIN ALIAS REC_ID
A BB1 0
A ... (1 Reply)
Discussion started by: Mapilo
1 Replies
10. Shell Programming and Scripting
Hi all
I have following part of a big file
TTDS00002 Synonyms M1 receptor
TTDS00002 Disease Alzheimer's disease
TTDS00002 Disease Bronchospasm (histamine induced)
TTDS00002 Disease Cognitive deficits
TTDS00002 Disease Schizophrenia
TTDS00002 Function The muscarinic acetylcholine... (2 Replies)
Discussion started by: kareena
2 Replies
LEARN ABOUT REDHAT
gimp::data
Data(3) User Contributed Perl Documentation Data(3)
NAME
Gimp::Data - Set and get state data.
SYNOPSIS
use Gimp::Data;
$Gimp::Data{'value1'} = "Hello";
print $Gimp::Data{'value1'},", World!!
";
DESCRIPTION
With this module, you can access plugin-specific (or global) data in Gimp, i.e. you can store and retrieve values that are stored in the
main Gimp application.
An example would be to save parameter values in Gimp, so that on subsequent invocations of your plug-in, the user does not have to set all
parameter values again (Gimp::Fu does this already).
%Gimp::Data
You can store and retrieve anything you like in this hash. It's contents will automatically be stored in Gimp, and can be accessed in later
invocations of your plug-in. Be aware that other plug-ins store data in the same "hash", so better prefix your key with something unique,
like your plug-in's name. As an example, the Gimp::Fu module uses "function_name/_fu_data" to store its data.
This module might use a persistant implementation, i.e. your data might survive a restart of the Gimp application, but you cannot count on
this.
"Gimp::Data" will try to freeze your data when you pass in a reference. On retrieval, the data is thawed again. See Storable for more info.
This might be implemented through either Storable or Data::Dumper, or not implemented at all (i.e. silently fail) ;)
PERSISTANCE
"Gimp::Data" contains the following functions to ease applications where persistence for perl data structures is required:
Gimp::Data::freeze(reference)
Freeze (serialize) the reference.
Gimp::Data::thaw(data)
Thaw (unserialize) the dsata and return the original reference.
LIMITATIONS
You cannot store references, and you cannot (yet) iterate through the keys (with "keys", "values" or "each").
AUTHOR
Marc Lehmann <pcg@goof.com>
SEE ALSO
perl(1), Gimp.
perl v5.8.0 2001-12-06 Data(3)