Sponsored Content
Top Forums Shell Programming and Scripting stripping out certain charecters Post 302098190 by mervin2006 on Friday 1st of December 2006 07:22:23 AM
Old 12-01-2006
Thanks for the clarification
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Restricted charecters in FTP password

hi i am unable to connect to FTP server.My FTP password contain one special charecter '#'.it might be the problem for connecting.please clarify regarding this special charecter in the password.i need some information about restricted charecters in the shell script. thanks (5 Replies)
Discussion started by: srivsn
5 Replies

2. Shell Programming and Scripting

replacing a line of unknown charecters in a file

Hi All I have a requirement where using a script I grep a file for string (KSG/Password in below ) , get the next line which is the password and I need replace the whole line of unknown special charecters (encrypted password) with another line as given below . As in below i need to get... (12 Replies)
Discussion started by: malavm
12 Replies

3. UNIX for Advanced & Expert Users

removing frame charecters

Hi I have a requirement as follows. My Input file is as follows. COL1,COL2,COL3,COL4,COL5 987,2,3~7~5,400~468~598,0005~4687~5980 1111,2,2~7,400~468,0005~897 Expected OUTPUT ============ COL1,COL2,COL3,COL4,COL5 987,2,3,400,0005 987,2,7,468,4687 987,2,5,598,5980 1111,2,2,400,0005... (6 Replies)
Discussion started by: tkbharani
6 Replies

4. Shell Programming and Scripting

stripping a variable down

I have a variable that has an absolute path for a file on my computer. This dynamically changes. Is there a way I can assign two new variables from that one? variable: /Users/keith/Desktop/test/file.mov 1) filename - no path or extention ....so just....file 2) path no filename or... (3 Replies)
Discussion started by: mainegate
3 Replies

5. UNIX for Dummies Questions & Answers

Stripping down binaries

Hello, I am the CEO of Grand Tech Corporation. We are launching Linux NT and forgive me, but I do not know how to strip binaries down in Mandriva Linux. Can someone tell me a way to?:b: (2 Replies)
Discussion started by: Linux NT
2 Replies

6. Solaris

Diffrence between stripping and mirroring

Hi All, What is the difference between stripping and mirroring? Thanks, Rafi. (3 Replies)
Discussion started by: rafidba.alvi
3 Replies

7. UNIX for Dummies Questions & Answers

grep for special charecters

Hi, I need to grep for text between " 01/Aug" and " 02/Aug" in a text file. The awk command usually fails with the error saying "line too long" Is there other simpler ways to achieve this ? (12 Replies)
Discussion started by: shifahim
12 Replies

8. Shell Programming and Scripting

Removing special ^M charecters

Hi, This code works for me for file in $(find /path/to/dir -type f); do tr -d '\r' <$file >temp.$$ && mv temp.$$ $file done However, i want this code to skip all .class files. Can you help me with the modified code. (2 Replies)
Discussion started by: mohtashims
2 Replies

9. Shell Programming and Scripting

Remove ^M charecters in all files

Hi, I wish to remove special charecters at the end of each line "^M" from all files under a folder and sub-folders. I do not seem to have dos2unix or Perl and my OS is Linux mymachine 2.6.32-431.5.1.el6.x86_64 #1 SMP Fri Jan 10 04:11:43 IST 2014 x86_64 x86_64 x86_64 GNU/Linux (8 Replies)
Discussion started by: mohtashims
8 Replies

10. Shell Programming and Scripting

Need to remove ^M charecters from all files

Hi, Below is my script where i wish to remove '^M' charecters from all files in the directory and sub-directories. Below code which is not able to remove all '^M' characters from all my files in all sub directories. find properties/* -type f -exec sh -c ' for file do tr -d '^M' < $file >... (3 Replies)
Discussion started by: mohtashims
3 Replies
Test::CPAN::Meta::Version(3)				User Contributed Perl Documentation			      Test::CPAN::Meta::Version(3)

NAME
Test::CPAN::Meta::Version - Validate CPAN META data against the specification SYNOPSIS
use Test::CPAN::Meta::Version; DESCRIPTION
This distribution was written to ensure that a META.yml file, provided with a standard distribution uploaded to CPAN, meets the specifications that are slowly being introduced to module uploads, via the use of package makers and installers such as ExtUtils::MakeMaker, Module::Build and Module::Install. This module is meant to be used together with Test::CPAN::Meta, however the code is self contained enough that you can access it directly. See CPAN::Meta for further details of the CPAN Meta Specification. CLASS CONSTRUCTOR
o new( data => $data [, spec => $version] ) The constructor must be passed a valid data structure. Optionally you may also provide a specification version. This version is then use to ensure that the given data structure meets the respective specification definition. If no version is provided the module will attempt to deduce the appropriate specification version from the data structure itself. METHODS
Main Methods o parse() Using the given data structure provided with the constructor, attempts to parse and validate according to the appropriate specification definition. Returns 1 if any errors found, otherwise returns 0. o errors() Returns a list of the errors found during parsing. Check Methods o check_map($spec,$data) Checks whether a map (or hash) part of the data structure conforms to the appropriate specification definition. o check_list($spec,$data) Checks whether a list (or array) part of the data structure conforms to the appropriate specification definition. Validator Methods o header($self,$key,$value) Validates that the YAML header is valid. Note: No longer used as we now read the YAML data structure, not the file. o url($self,$key,$value) Validates that a given value is in an acceptable URL format o urlspec($self,$key,$value) Validates that the URL to a META.yml specification is a known one. o string_or_undef($self,$key,$value) Validates that the value is either a string or an undef value. Bit of a catchall function for parts of the data structure that are completely user defined. o string($self,$key,$value) Validates that a string exists for the given key. o file($self,$key,$value) Validate that a file is passed for the given key. This may be made more thorough in the future. For now it acts like &string. o exversion($self,$key,$value) Validates a list of versions, e.g. '<= 5, >=2, ==3, !=4, >1, <6, 0'. o version($self,$key,$value) Validates a single version string. Versions of the type '5.8.8' and '0.00_00' are both valid. A leading 'v' like 'v1.2.3' is also valid. o boolean($self,$key,$value) Validates for a boolean value. Currently these values are '1', '0', 'true', 'false', however the latter 2 may be removed. o license($self,$key,$value) Validates that a value is given for the license. Returns 1 if an known license type, or 2 if a value is given but the license type is not a recommended one. o resource($self,$key,$value) Validates that the given key is in CamelCase, to indicate a user defined keyword. o keyword($self,$key,$value) Validates that key is in an acceptable format for the META.yml specification, i.e. any in the character class [-_a-z]. For user defined keys, although not explicitly stated in the specifications (v1.0 - v1.4), the convention is to precede the key with a pattern matching qr{Ax_}i. Following this any character from the character class [-_a-zA-Z] can be used. This clarification has been added to v2.0 of the specification. o identifier($self,$key,$value) Validates that key is in an acceptable format for the META.yml specification, for an identifier, i.e. any that matches the regular expression qr/[a-z][a-z_]/i. o module($self,$key,$value) Validates that a given key is in an acceptable module name format, e.g. 'Test::CPAN::Meta::Version'. o anything($self,$key,$value) Usually reserved for user defined structures, allowing them to be considered valid without a need for a specification definition for the structure. BUGS, PATCHES &; FIXES There are no known bugs at the time of this release. However, if you spot a bug or are experiencing difficulties that are not explained within the POD documentation, please send an email to barbie@cpan.org or submit a bug to the RT system (http://rt.cpan.org/Public/Dist/Display.html?Name=Test-CPAN-Meta). However, it would help greatly if you are able to pinpoint problems or even supply a patch. Fixes are dependent upon their severity and my availability. Should a fix not be forthcoming, please feel free to (politely) remind me. AUTHOR
Barbie, <barbie@cpan.org> for Miss Barbell Productions, <http://www.missbarbell.co.uk> COPYRIGHT AND LICENSE
Copyright (C) 2007-2013 Barbie for Miss Barbell Productions This distribution is free software; you can redistribute it and/or modify it under the Artistic Licence v2. perl v5.16.3 2013-04-07 Test::CPAN::Meta::Version(3)
All times are GMT -4. The time now is 03:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy