Sponsored Content
Top Forums Shell Programming and Scripting Creating unique mapping from multiple mapping Post 302663317 by jayan_jay on Thursday 28th of June 2012 01:41:05 AM
Old 06-28-2012
In perl..
Code:
$ perl -F'=|\s' -lane '$a=($#F+1)/2;while($i<$a){print "$F[$i]=$F[$i+$a]";$i++}' infile

 

10 More Discussions You Might Find Interesting

1. IP Networking

mapping drives

how can i map a shared network drive? Is there any command to perform mapping? For example if i want to map a shared directory named "wwwroot" in machine "dev001" to my machine's "X" drive, how can it be done?? -Thanks Sakthi. (1 Reply)
Discussion started by: cs_sakthi
1 Replies

2. UNIX for Advanced & Expert Users

kernel mapping...

> how the sendmsg and recvmsg calls will know which kernel module to use (SCTP, RTP etc.) internally(kernel mapping: how kernel handle socket call) (1 Reply)
Discussion started by: prangin
1 Replies

3. UNIX for Dummies Questions & Answers

Mapping PF Keys in Vi

This is my first post and right off the bat, I want to let you know that my experience in UNIX is 2 days only backed up with over 20 years of IT working. So, if this is a dumb question or too stupid, please bear with me. I read somewhere on the web and also on these forums that you can map your... (7 Replies)
Discussion started by: sssccc
7 Replies

4. Shell Programming and Scripting

Pattern mapping

Dear Friends, Please help me on this I have file A.txt containing text lines as below grectec; 30 ,50, 60, base_123 ; top09 grectec; 30 ,55, 60, base_123 ; top09 grectec; 10 ,53, 60, base_123 ; top09 grectec; 50 ,57, 60, base_123 ; top09 ... ... another file B.txt containing test... (4 Replies)
Discussion started by: Danish Shakil
4 Replies

5. Shell Programming and Scripting

Copying of multiple columns of one table to another by mapping with particular strings.

Hi, I would like to copy some columns from a particular file by mapping with the string names. i am using the .csv file format. my one file consist of 100 of columns but i want only particular 4 columns such as ( First_name, Middle_name,Last_name & Stlc). but they are listed in many files... (15 Replies)
Discussion started by: dsh007
15 Replies

6. UNIX for Dummies Questions & Answers

Re-Mapping Printers.

Hi we have a situation where some printers are on a server that sometimes has to be rebooted. If this happens the Unix boxes we have that are referencing the printers in the vfstab file fail to work even when the print server is brought back up. Does anyone know if it would be possible to put... (0 Replies)
Discussion started by: Hadleyshope
0 Replies

7. Shell Programming and Scripting

Need Help Mapping Arrays

I have the following arrays with different lengths that I want to map them with the same key. # Week numbers, 8 columns @headers = ("2011-34", "2011-35", "2011-36", "2011-37", "2011-38", "2011-39", "2011-40", "2011-41"); %data = ("2011-34", BCE, "2011-35", YZA, "2011-36",... (5 Replies)
Discussion started by: tqlam
5 Replies

8. Red Hat

drive mapping

What is the eqiuvalent of /dev/dsk/rdsk in linux vs Solaris (1 Reply)
Discussion started by: walnutpony123
1 Replies

9. Homework & Coursework Questions

Mount and Mapping are same???

Please let me know if mounted on in Unix and Mapping in Windows are same thing??? (1 Reply)
Discussion started by: MZC
1 Replies

10. Shell Programming and Scripting

Many to many -- mapping

INPUT 13333--TEXT1 14444--TEXT2 13333--TEXT3 12233--TEXT5 14444--TEXT5 12233--TEXT1 12222--TEXT5 13333--TEXT09 what I'm looking for is something using awk arrays with below given output. 14444--TEXT2,TEXT5 13333--TEXT1,TEXT3,TEXT09 12233--TEXT5,TEXT1 12222--TEXT5 (6 Replies)
Discussion started by: busyboy
6 Replies
Color::Library::Dictionary(3pm) 			User Contributed Perl Documentation			   Color::Library::Dictionary(3pm)

NAME
Color::Library::Dictionary - Color dictionary for Color::Library METHODS
@colors = $dictionary->colors Returns the list of Color::Library::Color objects contained by $dictionary Will return a list in list context, and a list reference in scalar context @names = $dictionary->names @names = $dictionary->color_names Returns the list of color names contained by $dictionary Will return a list in list context, and a list reference in scalar context $color = $dictionary->color( <query> ) Returns a Color::Library::Color object of $dictionary found via <query> A query can be any of the following: color name A color name is like "blue" or "bleached-almond" color title A color title is like "Dark Green-Teal" color id A color id is in the form of <dictionary_id>:<color_name>, for example: "x11:azure1" $id = $dictionary->id $name = $dictionary->name Returns the id (name) of $dictionary, e.g. svg x11 vaccc nbs-iscc-f $title = $dictionary->title Returns the title of $dictionary, e.g. SVG X11 VACCC NBS/ISCC F $subtitle = $dictionary->subtitle Returns the subtitle of $dictionary, if any $description = $dictionary->description Returns the description of $dictionary, if any perl v5.14.2 2011-12-07 Color::Library::Dictionary(3pm)
All times are GMT -4. The time now is 01:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy