Sponsored Content
Full Discussion: Help require with counter
Top Forums Shell Programming and Scripting Help require with counter Post 302747263 by nikhil jain on Friday 21st of December 2012 01:51:56 AM
Old 12-21-2012
Help require with counter

I have this file

Code:
Code:
1801,A1,2012-12-16 15:59:59.995,id2_3,ab,phoneC2-00,VOE,,,,,,,,,,,,,,,
1802,A1,2012-12-16 15:59:59.995,id2_3,ab=,phoneX1-01,BL,,,,,,,,,,,,,,,
1803,A1,2012-12-16 15:59:59.995,id2_3,ab,phone300,BL,,,,,,,,,,,,,,,
1804,A1,2012-12-16 15:59:59.995,id2_3,ab,phoneC2-00,al,,,,,,,,,,,,,,,
1805,A1,2012-12-16 15:59:59.995,id2_3,ab,phoneX1-01,al,,,,,,,,,,,,,,,
1806,A1,2012-12-16 15:59:59.995,id2_3,ab,phoneX1-01,id,,,,,,,,,,,,,,,
1807,A1,2012-12-16 15:59:59.995,id2_3,ab,phoneX1-01,al,,,,,,,,,,,,,,,
1808,A1,2012-12-16 15:59:59.995,id2_3,ab,phone100,al,,,,,,,,,,,,,,,
1809,A1,2012-12-16 15:59:59.995,id2_3,ab,phone101,id,,,,,,,,,,,,,,,
1810,A1,2012-12-16 15:59:59.995,id2_3,ab,phone101,id,,,,,,,,,,,,,,,


the first column gives the count number of that row..... it begins from 1,2,3...


the file looks before processing like mentioned below


Code:
Code:
A1,2012-12-16 15:59:59.995,id2_3,ab=,phoneX1-01,BL,,,,,,,,,,,,,,,
A1,2012-12-16 15:59:59.995,id2_3,ab,phone300,BL,,,,,,,,,,,,,,,
A1,2012-12-16 15:59:59.995,id2_3,ab,phoneC2-00,al,,,,,,,,,,,,,,,
A1,2012-12-16 15:59:59.995,id2_3,ab,phoneX1-01,al,,,,,,,,,,,,,,,
A1,2012-12-16 15:59:59.995,id2_3,ab,phoneX1-01,id,,,,,,,,,,,,,,,
A1,2012-12-16 15:59:59.995,id2_3,ab,phoneX1-01,al,,,,,,,,,,,,,,,
A1,2012-12-16 15:59:59.995,id2_3,ab,phone100,al,,,,,,,,,,,,,,,
A1,2012-12-16 15:59:59.995,id2_3,ab,phone101,id,,,,,,,,,,,,,,,
A1,2012-12-16 15:59:59.995,id2_3,ab,phone101,id,,,,,,,,,,,,,,,


Last edited by nikhil jain; 12-21-2012 at 02:57 AM.. Reason: confidential
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

require in first line

I have a website with a lot of php files. I need to to have the line (where "requiredfile.php"' should be a valid reference to the requiredfile.php in the top directory): require "requiredfile.php" as first line in every php file. The requiredfile.php will be in the top dir and the line I... (2 Replies)
Discussion started by: ibidris2003
2 Replies

2. Solaris

Command to require OS info

Hi, I am new to UNIX environment. Can anybody tell me how can I check whether my OS is 32bit or 64bit? Regards, Malay Mary (4 Replies)
Discussion started by: malaymaru
4 Replies

3. UNIX for Dummies Questions & Answers

require help about cut command

hi, im trying to cut the file using cut command in unix . the problem is i want to input the chacter list from another file and then using the postioins specified in this file i want to cut another file. for eg. cut -c(here i want to use a list being read from a file) listdata(this is the file i... (2 Replies)
Discussion started by: vikramchots
2 Replies

4. Shell Programming and Scripting

Regarding use and require keywords

Hi, what is the difference between use and require keywords in Perl. What is the significance of these lines (what it mean, what is the use of this) #!/usr/bin/perl -w // In Perl script.... #!/bin/ksh //In shell script..... Thanks Sweta (2 Replies)
Discussion started by: sweta
2 Replies

5. Shell Programming and Scripting

Require Help for Shell Script

Hi friends, i am trying to print warning for partition size which exceed limit of 90% & other are ok. i m using below command which print partition which exceed 90% # df -h | sort -k5 | head -1 | awk 'END{ print $1" :- Not Having more space on This Partition"}' i want to print... (14 Replies)
Discussion started by: jagnikam
14 Replies

6. Solaris

SMC require a password

Launching for the first time Solaris Management Console. Management Tools - This Computer - System Status - System Information. A window with info appear: In the right side: Solaris Management Console Server: 127.0.0.1 User Name: Root (Already written. And under it Password: (need typing).... (1 Reply)
Discussion started by: Xcislav
1 Replies

7. UNIX and Linux Applications

Getmail help require

Hi all, I am retrieving mail from live mail server to local mail server. I want to know that, how can i exclude some peoples from getmail domain retrival. verbose = 1 read_all = true delete_after = 30 message_log = ~/.getmail/log type = MultidropIMAPRetriever server = mail.abc.com... (0 Replies)
Discussion started by: jagnikam
0 Replies

8. Shell Programming and Scripting

Require help to sort string

Hi Folks, Currently am working with 10g db. I want to sort the below o/p. Current output: ============ SQL> select partition_name from user_tab_partitions where table_name='USER_AUDIT'; PARTITION_NAME ------------------------------ PARTMAX PART_AUDIT_NOV02 PART_AUDIT_NOV08... (4 Replies)
Discussion started by: sathik
4 Replies

9. Shell Programming and Scripting

sed help require

sed 's/abcd/$variable/g' abcd_calls > $variable_calls This is the statement i am trying which has 2 errors in it. 1st- sed 's/abcd/$variable/g' is changing abcd to $variable in the file abcd_calls ,I want it to convert abcd into the string value given by user through read command, taking... (1 Reply)
Discussion started by: learnbash
1 Replies

10. IP Networking

Samba ha configuration require

I HAVE TO DESIGN TWO NODE SAMBA HA SERVER, TO DO THIS I NEED YOUR HELP, HOW CAN CONFIGURE SUCH SCENARIO? REGARDS PRAMOD INGOLE (4 Replies)
Discussion started by: pramod_ingole
4 Replies
Locale::Codes::Currency(3pm)				 Perl Programmers Reference Guide			      Locale::Codes::Currency(3pm)

NAME
Locale::Codes::Currency - standard codes for currency identification SYNOPSIS
use Locale::Codes::Currency; $curr = code2currency('usd'); # $curr gets 'US Dollar' $code = currency2code('Euro'); # $code gets 'eur' @codes = all_currency_codes(); @names = all_currency_names(); DESCRIPTION
The "Locale::Codes::Currency" module provides access to standard codes used for identifying currencies and funds, such as those defined in ISO 4217. Most of the routines take an optional additional argument which specifies the code set to use. If not specified, the default ISO 4217 three-letter codes will be used. SUPPORTED CODE SETS
There are several different code sets you can use for identifying currencies. A code set may be specified using either a name, or a constant that is automatically exported by this module. For example, the two are equivalent: $curr = code2currency('usd','alpha'); $curr = code2currency('usd',LOCALE_CURR_ALPHA); The codesets currently supported are: alpha, LOCALE_CURR_ALPHA This is a set of three-letter (uppercase) codes from ISO 4217 such as EUR for Euro. Two of the codes specified by the standard (XTS which is reserved for testing purposes and XXX which is for transactions where no currency is involved) are omitted. This is the default code set. num, LOCALE_CURR_NUMERIC This is the set of three-digit numeric codes from ISO 4217. ROUTINES
code2currency ( CODE [,CODESET] ) currency2code ( NAME [,CODESET] ) currency_code2code ( CODE ,CODESET ,CODESET2 ) all_currency_codes ( [CODESET] ) all_currency_names ( [CODESET] ) Locale::Codes::Currency::rename_currency ( CODE ,NEW_NAME [,CODESET] ) Locale::Codes::Currency::add_currency ( CODE ,NAME [,CODESET] ) Locale::Codes::Currency::delete_currency ( CODE [,CODESET] ) Locale::Codes::Currency::add_currency_alias ( NAME ,NEW_NAME ) Locale::Codes::Currency::delete_currency_alias ( NAME ) Locale::Codes::Currency::rename_currency_code ( CODE ,NEW_CODE [,CODESET] ) Locale::Codes::Currency::add_currency_code_alias ( CODE ,NEW_CODE [,CODESET] ) Locale::Codes::Currency::delete_currency_code_alias ( CODE [,CODESET] ) These routines are all documented in the Locale::Codes::API man page. SEE ALSO
Locale::Codes The Locale-Codes distribution. Locale::Codes::API The list of functions supported by this module. http://www.iso.org/iso/support/currency_codes_list-1.htm The ISO 4217 data. AUTHOR
See Locale::Codes for full author history. Currently maintained by Sullivan Beck (sbeck@cpan.org). COPYRIGHT
Copyright (c) 1997-2001 Canon Research Centre Europe (CRE). Copyright (c) 2001 Michael Hennecke Copyright (c) 2001-2010 Neil Bowers Copyright (c) 2010-2012 Sullivan Beck This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.2 2012-10-11 Locale::Codes::Currency(3pm)
All times are GMT -4. The time now is 11:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy