Sponsored Content
Top Forums Shell Programming and Scripting Need help to extract a string delimited by any special character Post 73312 by kumariak on Tuesday 31st of May 2005 06:38:57 AM
Old 05-31-2005
Need help to extract a string delimited by any special character

I have a string as follows
IS*blahblah
TED~blahblah
etc.
I want to list down only IS and TED

Can someone help me?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

replacing string with special character ???

the problem is while replacing the old string with new one with the help of SED i am unable to replace the special characters with new strings. how can i do that? i dont want the user to be given the trouble to write '\' before every special characters like * , . , \ , $ , &. sed... (4 Replies)
Discussion started by: imppayel
4 Replies

2. Shell Programming and Scripting

Perl Script Syntax to Extract Everything After Special Character

Hi, I am writing a Perl script that reads in many lines, if a line meets the criteria I want to edit, it. For example, the script will return the following example line... test=abc123 All I want to do is strip off the "test=" and just be left with the abc123. In my script I can easily... (3 Replies)
Discussion started by: edrichard
3 Replies

3. Shell Programming and Scripting

Remove box like special character from end of string

Hi All, How to remove a box like special character which appears at the end of a string/line/record. I have no clue what this box like special character is. It is transparent square like box. This appears in a .DAT file at the end of header. I'm to compare a value in header with a parameter.... (16 Replies)
Discussion started by: Qwerty123
16 Replies

4. Shell Programming and Scripting

Delete parts of a string of character in one given column of a tab delimited file

I would like to remove characters from column 7 so that from an input file looking like this: >HWI-EAS422_12:4:1:69:89 GGTTTAAATATTGCACAAAAGGTATAGAGCGT U0 1 0 0 ref_chr8.fa 6527777 F DD I get something like that in an output file: ... (13 Replies)
Discussion started by: matlavmac
13 Replies

5. Shell Programming and Scripting

Extract character from string

ps -eaf | grep “oracleTRLV (LOCAL=NO)” | while read ora_proc do echo $ora_proc done I would like to modify the above shell so that if character 13 and 14 equal "12" to do something. Sorry I'm new to shell:( (14 Replies)
Discussion started by: NicoMan
14 Replies

6. Shell Programming and Scripting

How to replace with a special character in String

Hi, I am beginner to Shell Scripting. I have a String like this "testabcdef", i need the first character as it is and the remaining character should be replaced by the the '*' character. e.g(t***********) PLZ Suggest me. (5 Replies)
Discussion started by: nanthagopal
5 Replies

7. Shell Programming and Scripting

Extract string between 2 special characters

Hi, I have a unix file with contents as below Line1: ABC MNN X$$QWERTY$$ JKL Line2: HELLO $$HOW$$ ARE $$YOU$$ DOING i want to extract the string between $$ and $$ ie i want the output as QWERTY HOW YOU i want those strings seperated by some character say | desired output is... (7 Replies)
Discussion started by: vinredmac
7 Replies

8. UNIX for Dummies Questions & Answers

Extract string between two special characters

Hi, I have a file that looks something like >1-18*anc... (12 Replies)
Discussion started by: jyu429
12 Replies

9. Shell Programming and Scripting

Perl split string separated by special character

Hello I have string (string can have more sections) LINE="AA;BB;CC;DD;EE"I would like to assigne each part of string separated by ";" to some new variable. Can someone help? (4 Replies)
Discussion started by: vikus
4 Replies

10. UNIX for Beginners Questions & Answers

Extract string between two special chracters

Hi Folks - I'm trying to extract the string between two special characters, the "-" and "." symbols. The string format is as such: _PBCS_URL_PRD=https://plan-a503777.pbcs.us6.ocloud.com _PBCS_URL_TST=https://pln-test-a503777.pbcs.us6.ocloud.comIn the above case, I need to extract "a503777".... (7 Replies)
Discussion started by: SIMMS7400
7 Replies
ExtUtils::Depends(3)					User Contributed Perl Documentation				      ExtUtils::Depends(3)

NAME
ExtUtils::Depends - Easily build XS extensions that depend on XS extensions SYNOPSIS
use ExtUtils::Depends; $package = new ExtUtils::Depends ('pkg::name', 'base::package') # set the flags and libraries to compile and link the module $package->set_inc("-I/opt/blahblah"); $package->set_libs("-lmylib"); # add a .c and an .xs file to compile $package->add_c('code.c'); $package->add_xs('module-code.xs'); # add the typemaps to use $package->add_typemaps("typemap"); # install some extra data files and headers $package->install (qw/foo.h data.txt/); # save the info $package->save_config('Files.pm'); WriteMakefile( 'NAME' => 'Mymodule', $package->get_makefile_vars() ); DESCRIPTION
This module tries to make it easy to build Perl extensions that use functions and typemaps provided by other perl extensions. This means that a perl extension is treated like a shared library that provides also a C and an XS interface besides the perl one. This works as long as the base extension is loaded with the RTLD_GLOBAL flag (usually done with a sub dl_load_flags {0x01} in the main .pm file) if you need to use functions defined in the module. The basic scheme of operation is to collect information about a module in the instance, and then store that data in the Perl library where it may be retrieved later. The object can also reformat this information into the data structures required by ExtUtils::MakeMaker's WriteMakefile function. When creating a new Depends object, you give it a name, which is the name of the module you are building. You can also specify the names of modules on which this module depends. These dependencies will be loaded automatically, and their typemaps, header files, etc merged with your new object's stuff. When you store the data for your object, the list of dependencies are stored with it, so that another module depending on your needn't know on exactly which modules yours depends. For example: Gtk2 depends on Glib Gnome2::Canvas depends on Gtk2 ExtUtils::Depends->new ('Gnome2::Canvas', 'Gtk2'); this command automatically brings in all the stuff needed for Glib, since Gtk2 depends on it. METHODS
$object = ExtUtils::Depends->new($name, @deps) Create a new depends object named $name. Any modules listed in @deps (which may be empty) are added as dependencies and their dependency information is loaded. An exception is raised if any dependency information cannot be loaded. $depends->add_deps (@deps) Add modules listed in @deps as dependencies. (hashes) = $depends->get_deps Fetch information on the dependencies of $depends as a hash of hashes, which are dependency information indexed by module name. See "load". $depends->set_inc (@newinc) Add strings to the includes or cflags variables. $depends->set_libs (@newlibs) Add strings to the libs (linker flags) variable. $depends->add_pm (%pm_files) Add files to the hash to be passed through ExtUtils::WriteMakefile's PM key. $depends->add_xs (@xs_files) Add xs files to be compiled. $depends->add_c (@c_files) Add C files to be compiled. $depends->add_typemaps (@typemaps) Add typemap files to be used and installed. $depends->add_headers (list) No-op, for backward compatibility. $depends->install (@files) Install @files to the data directory for $depends. This actually works by adding them to the hash of pm files that gets passed through WriteMakefile's PM key. $depends->save_config ($filename) Save the important information from $depends to $filename, and set it up to be installed as name::Install::Files. Note: the actual value of $filename seems to be irrelevant, but its usage is kept for backward compatibility. hash = $depends->get_makefile_vars Return the information in $depends in a format digestible by WriteMakefile. This sets at least the following keys: INC LIBS TYPEMAPS PM And these if there is data to fill them: clean OBJECT XS hashref = ExtUtils::Depends::load (name) Load and return dependency information for name. Croaks if no such information can be found. The information is returned as an anonymous hash containing these keys: instpath The absolute path to the data install directory for this module. typemaps List of absolute pathnames for this module's typemap files. inc CFLAGS string for this module. libs LIBS string for this module. deps List of modules on which this one depends. This key will not exist when loading files created by old versions of ExtUtils::Depends. $depends->load_deps Load $depends dependencies, by calling "load" on each dependency module. This is usually done for you, and should only be needed if you want to call "get_deps" after calling "add_deps" manually. BUGS
Version 0.2 discards some of the more esoteric features provided by the older versions. As they were completely undocumented, and this module has yet to reach 1.0, this may not exactly be a bug. This module is tightly coupled to the ExtUtils::MakeMaker architecture. SEE ALSO
ExtUtils::MakeMaker. AUTHOR
Paolo Molaro <lupus at debian dot org> wrote the original version for Gtk-Perl. muppet <scott at asofyet dot org> rewrote the innards for version 0.2, borrowing liberally from Paolo's code. MAINTAINER
The Gtk2 project, http://gtk2-perl.sf.net/ LICENSE
This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.2 2011-01-25 ExtUtils::Depends(3)
All times are GMT -4. The time now is 07:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy