A Triva question.
What is the easy way to remove the double quotes in the file in the following format.
"asdfa","fdgh","qwer"
tr -d '\"' <filename >newfilename
mv newfilename oldfilename
This need to be handled in a script. Any better way to do this. Will sed be more effecient?
One... (3 Replies)
I want to remove the comma which is present within the double quoted string. All other commas which is present outside double quotes should be present.
Input : a,b,"cc,dd,ee",f,ii,"jj,kk",mmm
output : a,b,"ccddee",f,ii,"jjkk",mmm (3 Replies)
Hi,
I am trying to replace a specific column values in a csv file with double quotes.
Example:
SNO,NAME,ZIPCODE,RANK
1,Robert,74538,12
2,Sam,07564,13
3,Kim, Ed,12345,14
Desired Output:
SNO,NAME,ZIPCODE,RANK
1,Robert Ken,74538,12
2,Sam Mik,"07564",13
3,"Kim, Ed",12345,14
I... (3 Replies)
Hi i have a file with follw data
"20090427","0","","16371311","-100200","","","","16371311","JUL","09"
In the 10th column i need to convert the month name into month number in this case JUL will be 7 and append the 10th and 11th column which shows me the output as 709. Can you suggest a shell... (11 Replies)
I would like to know how to replace a space delimiter with a ^_ (\037) delimiter and a double quote delimiter while maintaining the spaces inside the double quotes. The double quote delimiter is only used on text fields.
I'd prefer a one-liner, but could handle a function or script that accepts... (4 Replies)
Hi,
I am little new to forum and new on unix side. I have a small issue below:
I am reading a file that has 5 columns something like below.
col1,col2,col3,col4,col5
Some records are having double quoted values something like below:
"value1","value2","value3","value4","value5"
I need... (8 Replies)
Hi All,
I'm unable to load the data using sql loader where there are double quotes within the double quotes As these are optionally enclosed by double quotes.
Sample Data :
"221100",138.00,"D","0019/1477","44012075","49938","49938/15043000","Television - 22" Refurbished - Airwave","Supply... (6 Replies)
I have file with are delimited by pipe(|) symbol, I wanted those to be removed except the ones which are enclosed in double quotes.
If your quote file is:
|Life is |Beautiful"|"Indeed life |is beautiful too|"|"But unix is fun| is not"|"
It should return:
Life is Beautiful"|"Indeed life is... (9 Replies)
Hi All,
I have my data like below
"1","abc,db","hac,aron","4","5"
Now I need to extract 1,2,4th columns
Output should be like
"1",abc,db","4"
Am trying to use cut command but not able to get the results.
Thanks in advance. (4 Replies)
Please use code tags
Hi,
I have input data is below format and n of column in the multiple flat files. the string data has any double quotes(") values replaced to double double quotes for all the columns{"").
Also, my input flat file each column string data has carriage of new line too.... (14 Replies)
Discussion started by: SSrini
14 Replies
LEARN ABOUT REDHAT
pdl::gslsf::trig
TRIG(3) User Contributed Perl Documentation TRIG(3)NAME
PDL::GSLSF::TRIG - PDL interface to GSL Special Functions
DESCRIPTION
This is an interface to the Special Function package present in the GNU Scientific Library.
SYNOPSIS FunctionsFUNCTIONS
gsl_sf_sin
Signature: (double x(); double [o]y(); double [o]e())
Sin(x) with GSL semantics.
gsl_sf_cos
Signature: (double x(); double [o]y(); double [o]e())
Cos(x) with GSL semantics.
gsl_sf_hypot
Signature: (double x(); double xx(); double [o]y(); double [o]e())
Hypot(x,xx) with GSL semantics.
gsl_sf_complex_sin
Signature: (double zr(); double zi(); double [o]x(); double [o]y(); double [o]xe(); double [o]ye())
Sin(z) for complex z
gsl_sf_complex_cos
Signature: (double zr(); double zi(); double [o]x(); double [o]y(); double [o]xe(); double [o]ye())
Cos(z) for complex z
gsl_sf_complex_logsin
Signature: (double zr(); double zi(); double [o]x(); double [o]y(); double [o]xe(); double [o]ye())
Log(Sin(z)) for complex z
gsl_sf_lnsinh
Signature: (double x(); double [o]y(); double [o]e())
Log(Sinh(x)) with GSL semantics.
gsl_sf_lncosh
Signature: (double x(); double [o]y(); double [o]e())
Log(Cos(x)) with GSL semantics.
gsl_sf_polar_to_rect
Signature: (double r(); double t(); double [o]x(); double [o]y(); double [o]xe(); double [o]ye())
Convert polar to rectlinear coordinates.
gsl_sf_rect_to_polar
Signature: (double x(); double y(); double [o]r(); double [o]t(); double [o]re(); double [o]te())
Convert rectlinear to polar coordinates. return argument in range [-pi, pi].
gsl_sf_angle_restrict_symm
Signature: (double [o]y())
Force an angle to lie in the range (-pi,pi].
gsl_sf_angle_restrict_pos
Signature: (double [o]y())
Force an angle to lie in the range [0,2 pi).
gsl_sf_sin_err
Signature: (double x(); double dx(); double [o]y(); double [o]e())
Sin(x) for quantity with an associated error.
gsl_sf_cos_err
Signature: (double x(); double dx(); double [o]y(); double [o]e())
Cos(x) for quantity with an associated error.
AUTHOR
This file copyright (C) 1999 Christian Pellegrin <chri@infis.univ.trieste.it> All rights reserved. There is no warranty. You are allowed to
redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this
file is separated from the PDL distribution, the copyright notice should be included in the file.
The GSL SF modules were written by G. Jungman.
perl v5.8.0 2003-01-29 TRIG(3)