Sponsored Content
Full Discussion: Perl code help
Top Forums Shell Programming and Scripting Perl code help Post 302881844 by SkySmart on Thursday 2nd of January 2014 08:10:17 AM
Old 01-02-2014
Quote:
Originally Posted by rangarasan
Hi,,

Try something like this..


Code:
my @allipsfound ;
my %ips = ();
for my $elem (@gatches) {
    my ($ip) = split ":",$elem;
    $ips{$ip} = 1;
}
print join('\n', sort keys %ips), "\n";


this worked. thank you so much!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl running C code

Ok, I am thinking about developing a small little web app to help teach C to people. So you can type some C code into a text area, then a CGI Perl script or something similar would compile the code, then possibly execute it showing the results in another text area. My concern of course is... (1 Reply)
Discussion started by: gdboling
1 Replies

2. UNIX for Dummies Questions & Answers

perl code help

if anyone knows how to do the loop and the function listed, please let me know it would be a great help. Thanks! •Create an array NUM with the following ten values in it: 14, 25.6, 43, 22, 412.14, 819, 2, 721, 7.218, 11.9 •Print the array NUM •Create an array COLOR with the following... (1 Reply)
Discussion started by: circleW
1 Replies

3. Shell Programming and Scripting

need help to write perl code

I have 2 files , one is master file and another file i am genearting which contains Number of fails for all host & version. The first file is master file which contains 2 column, Test Case name and Product Name: daily/DB/attach/attach_redundancy.exp: YRS daily/DB/help/help.exp: ... (0 Replies)
Discussion started by: getdpg
0 Replies

4. Shell Programming and Scripting

PERL Code

I have a code block ... $cmd = "find $audit_dir -mtime +$days_to_keep -exec rm {} \\;"; unless(open(CMD, "$cmd |")){ $msg = "Error command : $cmd \n\n"; print_log $lgh,"$msg",1; exit 1; } print_log $lgh, "Deleting... (2 Replies)
Discussion started by: talashil
2 Replies

5. Shell Programming and Scripting

perl: a way to see a sub code in debug mode: perl -de 0 ?

Is there a way to see or print a sub code? Sometime a sub could be already defined, but in the debug mode (so, interactively) it could be already out of screen. So, I would think about a way to check if the sub is defined (just 'defined' is not a problem) and how it is defined. Also, if... (4 Replies)
Discussion started by: alex_5161
4 Replies

6. Programming

Perl- How to catch the file in perl code?

Hi, plz see the below code , i have catch the file "Orders.20110714.out "file as a Orders*.out. but it giving me an error .it does not open the file. if the same thing i have done by code code-> ls Orders*.out then it gives me the output Orders.20110714.out i am trying apply the... (1 Reply)
Discussion started by: pspriyanka
1 Replies

7. Shell Programming and Scripting

perl code

Hi Please read the below information carefully and help me to solve the issue . I want to know ,how to catch the word before perticular word using perl code?? Eg: if the row contains =========================== Original Order Tuple Duplicatel Execution Tuple ... (1 Reply)
Discussion started by: pspriyanka
1 Replies

8. Shell Programming and Scripting

perl code

Perl code to get the diff of the two baselines in clearcase ? (2 Replies)
Discussion started by: saku
2 Replies

9. Shell Programming and Scripting

perl code

What is the meaning of below code, which is capturing from one file . $runDate = $1 if $str =~ m/,"TransactTime":"({10})/; # get transaction date as run date Is it the date from the first line of file or last line of file??? (Note:Each line from the file contains date) (2 Replies)
Discussion started by: aish11
2 Replies

10. Programming

Perl -- code

Hi All, I new to perl scripting, trying to write a program to get multiple inputs from the users and it should be stored in one variable. can some one help me with it . here is the sample code i tried , but its not working. # cat array.pl #!/usr/bin/perl print "enter the total no of... (4 Replies)
Discussion started by: nanduri
4 Replies
atmifmp(8)						      System Manager's Manual							atmifmp(8)

NAME
atmifmp - Configures the ATM subsystem for switching IP traffic only SYNOPSIS
/usr/sbin/atmifmp command arguments Arguments can appear in any order after the command. All required arguments must be specified. OPTIONS
This section is organized by the tasks you can perform with the atmifmp command. Each task subsection provides the atmifmp command syntax and the options to use to complete the tasks. Enabling IP Switching Syntax: /usr/sbin/atmifmp attach ips=num driver=name [snapvci=vci] [rxmin=vci] [rxmax=vci] [txmin=vci] [txmax=vci] Creates a point-to-point, multicast-capable virtual interface on a driver as specified in the next two arguments. If the virtual interface already exists but is not currently attached (because it was previously attached and detached), the command creates an association between the virtual interface and the specified driver. The attach command also configures the Virtual Circuit Identifier (VCI) ranges available to the IP switching module (VPI 0 is assumed). VCs used by the IP switching module are unidirectional. After the ips interface is attached, you must configure the interface using the ifconfig(8) command, specifying the source address of the host and destination address of the IP switch or another host associated with the point-to-point interface. Specifies the ips interface number to create. Specifies the ATM driver associated with the virtual interface. Specifies the VCI number that Ipsilon Flow Management Protocol (IFMP) uses as the default SNAP VCI. The default VCI is 15. This number must match the VCI number used by IFMP on the destination host or switch associated with the point-to-point interface. Specifies the smallest VCI number that can be used for receiving IP switching traffic. The default value is the driver's minimum VCI value. Specifies the largest VCI num- ber that can be used for receiving IP switching traffic. The default value is the driver's maximum VCI value. Specifies the small- est VCI number that can be used for transmitting IP switching traffic. The default value is the driver's minimum VCI value. Speci- fies the largest VCI number that can be used for transmitting IP switching traffic. The default value is the driver's maximum VCI value. Disabling IP Switching Syntax: /usr/sbin/atmifmp detach ips=num Disassociates the virtual interface, ipsnum, from the driver to which it was previously attached. Prior to detaching the interface, you must delete the ips interface's address and bring down the the ips interface using the ifconfig(8) command. Specifies the ips interface. Displaying IP Switching Configuration Syntax: atmifmp showips [ips=num] Displays the state of all ips interfaces, unless an interface is specified by the next argument. Information displayed includes the inter- face attachment state, the driver to which the interface is attached, the default SNAP VC, the interface and driver receive/transmit/mini- mum/maximum VC ranges, and IFMP and Flow configuration information. Specifies the ips interface. Displaying or Clearing IP Switching Statistics Syntax: /usr/sbin/atmifmp stats [ips=num] [clear] Displays the flow and IFMP statistics for all ips interfaces, unless an interface is specified by the next argument. Specifies the ips interface. Zeros the flow and IFMP statistics for all ips interfaces, unless an interface is specified. Statistics are displayed after they are cleared. Displaying IP Switching Flow Information Syntax: /usr/sbin/atmifmp flows [ips=num] [long] Displays flows created by the IP switching module on all interfaces, unless an interface is specified by the next argument. Information displayed for each flow includes the Flow ID, the transmit or receive VC associated with the Flow, the Flow Type, the number of packets sent or received, and VC aging information. Specifies the ips interface. Displays additional information about each flow, such as the information encoded in the Flow ID. DESCRIPTION
The atmifmp command enables and disables IP switching on a Tru64 UNIX end system that has an attached ATMworks ATM adapter. The IP switch- ing architecture is based on the Ipsilon Networks, Inc. reference model, and enables you to configure the Tru64 UNIX ATM subsystem to sup- port only IP traffic over an ATM network. The IFMP protocol associates an ATM virtual circuit with an IP data flow. RESTRICTIONS
If an ips interface is attached to a specific ATM adapter on your system, you cannot use that adapter to run ATM Forum protocols (UNI sig- naling, Classical IP, or Local Area Network Emulation (LANE)). Multiple adapters are required. SEE ALSO
Commands: atmconfig(8) Files: atm.conf(4) RFC 1953, Ipsilon Flow Management Protocol Specification for IPv4 V 1.0 RFC 1954, Transmission of Flow Labeled IPv4 on ATM Data Links, Ipsilon Version 1.0 atmifmp(8)
All times are GMT -4. The time now is 03:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy