Sponsored Content
Top Forums Shell Programming and Scripting HELP !! Builting string in incremental order Post 302084858 by u263066 on Monday 14th of August 2006 05:23:46 AM
Old 08-14-2006
aigles,

I have tried your code also, but it would only showing the last data of last file ,

Code:
Prefix=citi${TSTAMP}
for file in $(ls ${Prefix}_*.DAT | sort -k1.$((${#[Prefix]}+2))n)
do
   tr -d '\n' < $file > $Prefix.trn
done

is there any other thoughts

Last edited by u263066; 08-14-2006 at 06:44 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

output string in reversing order

If I have string { I_love_shell_scripts} anyone knows how to have output {stpircs_llehs_evol_I} by using shell and perl ?I know in perl, there is reverse() funcation, but can it be done by not using reverse()? (3 Replies)
Discussion started by: ccp
3 Replies

2. UNIX for Dummies Questions & Answers

How to change the order of a string ?

Hi , I want to change the order of a string using sed command . Is it possible ? $echo "abc123xyz" | sed 's/\()*\) \(*\)/\2\1/' abc123xyz $ echo "abc123xyz" |sed 's/\()*\) \(*\) \()*\)/\2\1\3/' abc123xyz I want to change the string , abc123xyz as xyz123abc . Is it... (5 Replies)
Discussion started by: rajavu
5 Replies

3. Shell Programming and Scripting

Incremental backup

Hi, I would like to create a daily incremental backup of a directory with all of the files within and add a timestamp (year-month-day) to the tar.gz file. I have the following, but it doesn't backup the inside files of the directory. #!/bin/bash tar -czf... (1 Reply)
Discussion started by: agasamapetilon
1 Replies

4. UNIX for Dummies Questions & Answers

incremental by 1

let says, i have this number as 000002080, i want to add 1 to make it 000002081, and then i want to add 1 to 000002082, add 1 to 000002083, 84. i=000002080 TOT=$(echo "scale=9; $i + 1" | bc) echo $TOT it shows 2081, i want to retain 000002081, 000002082, 000002082, 000002084. (2 Replies)
Discussion started by: tjmannonline
2 Replies

5. Shell Programming and Scripting

Finding a String and Replacing it with an incremental value

Hi Friends, I have a text file which has about 200,000 records in it. we have a string which repeats in each and every record. So we have to write a script in ksh which finds that string on each line and replaces it with a new string(incremental value) for a set every four records. To be... (12 Replies)
Discussion started by: vpv0002
12 Replies

6. Shell Programming and Scripting

print in incremental order a sentence

Dear help! I want to print The number i is number i let i=1 to 5 output should be like The number 1 is number 1 The number 2 is number 2 The number 3 is number 3 The number 4 is number 4 The number 5 is number 5 Would be gr8 if you mke this with awk Thanks (7 Replies)
Discussion started by: Indra2011
7 Replies

7. Shell Programming and Scripting

Swapping a string of numbers between higher and lower order values(HEX)

I have this below string in a variable cutString=21222222222222222122222222222222 this string is nothing but hex values depicted as below 21:22:22:22:22:22:22:22:21:22:22:22:22:22:22:22 so what i want to achieve is swap the lower order with higher order values in the... (3 Replies)
Discussion started by: vivek d r
3 Replies

8. Shell Programming and Scripting

Manipulate XML File Continous STRING by each Order Line using SHELL

heres sample File: <?xml version="1.0"?> <!DOCTYPE cXML SYSTEM "www"><cXML.............................................. <OrderRequest>USE UNIX.com</Extrinsic><Extrinsic name="UniqueName">Peter@UNIX.com</Extrinsic><Extrinsic name="ContractingEntity">UNIX... (3 Replies)
Discussion started by: Pete.kriya
3 Replies

9. Shell Programming and Scripting

sed string with any order

Hi, i have a strange prob. log file contains ip, protocol, user name, agent . these can be in any order. If log contains the above order able to fetch all details but if details are in diff order not able to fetch all details. using below command. grep -A50 "Entry " "/logs/file.log" \ |grep... (6 Replies)
Discussion started by: Satyak
6 Replies

10. UNIX for Beginners Questions & Answers

Incremental logic

Hi Guys, am trying to write logic to do incremental value using linux Example: a=00.00.00.01 My b should be like this b=00.00.00.02 and when it reaches 99 my b should look like this b=00.00.01.99 Appreciate your help guys Please use CODE tags when displaying sample input, sample... (14 Replies)
Discussion started by: buddi
14 Replies
WSDL2PERL(1p)						User Contributed Perl Documentation					     WSDL2PERL(1p)

NAME
wsdl2perl - create perl bindings for SOAP webservices. SYNOPSIS
wsdl2perl -t TYPE_PREFIX -e ELEMENT_PREFIX -m TYPEMAP_PREFIX -i INTERFACE_PREFIX -b BASE_DIR URL OPTIONS
NAME SHORT DESCRITPION ---------------------------------------------------------------------------- prefix p Prefix for all generated classes. If you set "-p=Foo", you will get "FooAttributes", "FooTypes", "FooElements" and so on. attribute_prefix a Prefix for XML attribute classes. Default: MyAttributes type_prefix t Prefix for type classes. Default: MyTypes element_prefix e Prefix for element classes. Default: MyElements typemap_prefix m Prefix for typemap classes. Default: MyTypemaps interface_prefix i Prefix for interface classes. Default: MyInterfaces server_prefix sp Prefix for server classes. Default: MyServer base_path b Path to create classes in. Default: . typemap_include mi File to include in typemap. Must eval() to a valid perl hash (not a hash ref !). proxy x HTTP(S) proxy to use (if any). wsdl2perl will also use the proxy settings specified via the HTTP_PROXY and HTTPS_PROXY environment variables. keep_alive Use http keep_alive. user Username for HTTP authentication password Password. wsdl2perl will prompt if not given. generator g Generator to use. Default: XSD server s Generate a server interface (currently only CGI supported) help h Show help content DESCRIPTION
Generates a interface class for a SOAP web service described by a WSDL definition. The following classes are created: o A interface class for every SOAP port in service Interface classes are what you will mainly deal with: They provide a method for accessing every web service method. If you chose to generate Server interfaces, a class for every SOAP port in every Web service. You'll have to implement a method for each of the implemented methods. You may implement these methods in the CGI script / handler, or in any class to dispatch calls to. o A typemap for every service Typemaps are used internally by SOAP::WSDL for parsing the SOAP message into object trees. If the WSDL definition is incomplete, you may need to add some lines to your typemap. Especially definitions for faults are sometimes left out. Additional typemap content may be included by passing a file name as typemap_include (mi) option. o A type class for every element, complexType or simpleType definition You may need to write additional type classes if your WSDL is incomplete. For writing your own lib classes, see SOAP::WSDL::XSD::Typelib::Element, SOAP::WSDL::XSD::Typelib::ComplexType and SOAP::WSDL::XSD::Typelib::SimpleType. TROUBLESHOOTING
Accessing HTTPS URLs You need Crypt::SSLeay installed for accessing HTTPS URLs. Accessing protected documents Use the -u option for specifying the user name. You will be prompted for a password. Alternatively, you may specify a passowrd with --password on the command line. Accessing documents protected by NTLM authentication Set the --keep_alive option. Note that accessing documents protected by NTLM authentication is currently untested, because I have no access to a system using NTLM authentication. If you try it, I would be glad if you could just drop me a note about success or failure. LICENSE
Copyright 2007 Martin Kutter. This file is part of SOAP-WSDL. You may distribute/modify it under the same terms as perl itself AUTHOR
Martin Kutter <martin.kutter fen-net.de> perl v5.10.1 2010-12-21 WSDL2PERL(1p)
All times are GMT -4. The time now is 04:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy