03-02-2007
Quote:
Originally Posted by ghostdog74
don't think they produce the desired output.
not all blank spaces need to be converted to tildes, as shown in the sample output OP provided
You are right.
trichyselva,
Can you be more specific on how do you want to add tilde?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Can anyone let me know on how to convert a Tab delimited file to Comma delimited file in Unix
Thanks!! (22 Replies)
Discussion started by: charan81
22 Replies
2. Shell Programming and Scripting
hello all,
i have a comma delimited file.
i want to replace the commas in the file with the tilde symbol using sed.
how can i do this?
thanks. (4 Replies)
Discussion started by: femig
4 Replies
3. Shell Programming and Scripting
Hi All,
I want to delete duplicate records from a tilde delimited file. Criteria is considering the first 2 fields, the combination of which has to be unique, below is a sample of records in the input file
1620000010338~2446694087~0~20061130220000~A00BCC1CT... (5 Replies)
Discussion started by: irshadm
5 Replies
4. UNIX for Dummies Questions & Answers
the data in my file is has no delimiters. it looks like this:
H52082320024740010PH333200612290000930 0.0020080131
D5208232002474000120070306200703060580T1502 TT 1.00
H52082320029180003PH333200702150001 30 100.0020080205
D5208232002918000120070726200707260580T1502 ... (3 Replies)
Discussion started by: jclanc8
3 Replies
5. Shell Programming and Scripting
I would like to use a variable to store the IDs that I would like to extract.
I would like to extract a list of values of the IDs from a delimited string. Using bash here.
file format would be
id1=we1;id2=er2;id3=rt3;id4=yu4
The number of fields and records is not fixed. There could be... (2 Replies)
Discussion started by: milo7
2 Replies
6. Shell Programming and Scripting
I need to extract all text delimited from <name> and </name> tags from an xml file, but not only first occurence. I need to extract all occurences.
I've tried with this command:
awk -F"<name>|</name>" 'NF>2{print $2}'
but it give only first occurence. How can i modify it? (18 Replies)
Discussion started by: ingalex
18 Replies
7. Shell Programming and Scripting
I have a file which looks like this:
73450 articles and news developmental psychology 2006-03-30 16:22:40 1 http://www.usnews.com
73450 articles and news developmental psychology 2006-03-30 16:22:40 2 http://www.apa.org
73450 articles and news developmental psychology 2006-03-30... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies
8. Shell Programming and Scripting
Hi,
In my file (which is "," delimited and text qualifier is "), I have to extract a particualr field.
file1:
1,"aa,b",4
expected is the 2nd field:
aa,b
I tried the basic cut -d "," -f 2 file 1, this gave me
aa alone instead aa,b.
A small hint ot help on this will be very... (5 Replies)
Discussion started by: machomaddy
5 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I need urgent help with a tab delimited file I am working on.
This is the file :
TTTT|YYYYYYY|jargon-journal|MP0000000UID||"j1, j2, j3"
I need th following output:
TTTT|YYYYYYY|jargon-journal|MP0000000UID||ji
TTTT|YYYYYYY|jargon-journal|MP0000000UID||j2... (8 Replies)
Discussion started by: rayarnab
8 Replies
10. Shell Programming and Scripting
Hi All,
I am writing a shell script to extract oracle table into a pipe dilemited flat file. Below is my code and I have attached two files that I have abled to generate so far.
1. Table.txt ==> database extract file
2. flat.txt ==> pipe delimited after some manipulation of the original db... (5 Replies)
Discussion started by: express14
5 Replies
LEARN ABOUT SUSE
module::build::moduleinfo
Module::Build::ModuleInfo(3pm) Perl Programmers Reference Guide Module::Build::ModuleInfo(3pm)
NAME
ModuleInfo - Gather package and POD information from a perl module file
DESCRIPTION
new_from_file($filename, collect_pod => 1)
Construct a "ModuleInfo" object given the path to a file. Takes an optional argument "collect_pod" which is a boolean that determines
whether POD data is collected and stored for reference. POD data is not collected by default. POD headings are always collected.
new_from_module($module, collect_pod => 1, inc => @dirs)
Construct a "ModuleInfo" object given a module or package name. In addition to accepting the "collect_pod" argument as described above,
this method accepts a "inc" argument which is a reference to an array of of directories to search for the module. If none are given,
the default is @INC.
name()
Returns the name of the package represented by this module. If there are more than one packages, it makes a best guess based on the
filename. If it's a script (i.e. not a *.pm) the package name is 'main'.
version($package)
Returns the version as defined by the $VERSION variable for the package as returned by the "name" method if no arguments are given. If
given the name of a package it will attempt to return the version of that package if it is specified in the file.
filename()
Returns the absolute path to the file.
packages_inside()
Returns a list of packages.
pod_inside()
Returns a list of POD sections.
contains_pod()
Returns true if there is any POD in the file.
pod($section)
Returns the POD data in the given section.
find_module_by_name($module, @dirs)
Returns the path to a module given the module or package name. A list of directories can be passed in as an optional parameter,
otherwise @INC is searched.
Can be called as either an object or a class method.
find_module_dir_by_name($module, @dirs)
Returns the entry in @dirs (or @INC by default) that contains the module $module. A list of directories can be passed in as an optional
parameter, otherwise @INC is searched.
Can be called as either an object or a class method.
AUTHOR
Ken Williams <kwilliams@cpan.org>, Randy W. Sims <RandyS@ThePierianSpring.org>
COPYRIGHT
Copyright (c) 2001-2006 Ken Williams. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
perl(1), Module::Build(3)
perl v5.12.1 2010-04-26 Module::Build::ModuleInfo(3pm)