02-19-2008
Hi,
This is the sample data i have ...
Some kind of text 1234567891 abcd February 14, 2008 03:58:54 AM 0.00 descr lmnop
Some kind of text 1234567891 abcd February 14, 2008 03:58:54 AM 0.00 lmnop
Some kind of text 1234567891 abcd February 14, 2008 03:58:54 AM 0.00
Im looking for a code that does something like this ..
Some kind of text 1234567891|abcd|February 14, 2008 03:58:54 AM|0.00|descr|lmnop
Some kind of text 1234567891|abcd|February 14, 2008 03:58:54 AM|0.00||lmnop
Some kind of text 1234567891|abcd|February 14, 2008 03:58:54 AM|0.00||
Thanks!
Last edited by meghana; 02-19-2008 at 06:35 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
HI
can any one tell me how to replace a delimiter : with another delimiter '\001' it is a non printable octal character.
thanks in adv
spandu (4 Replies)
Discussion started by: spandu
4 Replies
2. Shell Programming and Scripting
Hi everybody,
This time I am having one issue in perl.
I have to create comma separated file using the following type of information. The problem is the columns do not have any specific delimiter. So while using split I am getting different value. Some where it is space(S) and some where it is... (9 Replies)
Discussion started by: Amiya Rath
9 Replies
3. Shell Programming and Scripting
arr_Ent_NameId variable holds 'Prakash pawar' 'sag' '23' '50000' this value
'Prakash pawar' 'sag' '23' '50000' I want to replace space( ) with comma (,)
There are 4 fields here. I don't want to replace first field with comma.
output should be: 'Prakash,pawar','sag','23','50000'
... (2 Replies)
Discussion started by: pritish.sas
2 Replies
4. Shell Programming and Scripting
I have a csv file and there is a problem which I need to resolve.
Column1,Column2,Colum3,Column4
,x,y,z
,d,c,v
t,l,m,n
,h,s,k
,k,,y
z,j, ,p
Now if you see column1 for row 1 and row 4 though they are null there is a space but in case of row2 and row 5 there is no space.
I want row... (3 Replies)
Discussion started by: RubinPat
3 Replies
5. Shell Programming and Scripting
not sure if i'm doing this right i'm new tho this but i'm trying to use a space as a delimiter with the cut command
my code is
size=$( du -k -S -s /home/cmik | cut -d' ' -f1 )
i've also tried -f2 and switching the -d and -f around if that does anything (3 Replies)
Discussion started by: Cmik
3 Replies
6. Shell Programming and Scripting
Hi ,
Please suggest me how do I use : (colon and one space) as a delimiter in awk
Best regards,
Vishal (2 Replies)
Discussion started by: Vishal_dba
2 Replies
7. Shell Programming and Scripting
Hi,
Extremely new to Perl scripting, but need a quick fix without using TEXT::CSV
I need to read in a file, pass any delimiter as an argument, and convert it to bar delimited on the output. In addition, enclose fields within double quotes in case of any embedded delimiters.
Any help would... (2 Replies)
Discussion started by: JPB1977
2 Replies
8. Shell Programming and Scripting
Hi,
I am having a files in my directory like this:
2014 1049_file1.txt
2014 1050_file2.txt
2014 1110_file3.txt
2014 1145_file4.txt
2014 2049_file5.txt
I need to replace the above file names like this without changing the content of filename:
file1.txt
file2.txt
file3.txt... (10 Replies)
Discussion started by: rohit_shinez
10 Replies
9. Shell Programming and Scripting
i have a file with following data.
{
EqName "Tan 1"
....
....
}
{
EqName "Sin 2"
...
...
}
I have to replace the value of EqName to Tan_1 and Sin_2 in file.Can i use sed or awk ?
cat file|grep EqName|awk '{print $2 $3}'|sed -i 's//_/g'
I tried with this but it... (2 Replies)
Discussion started by: Jag02
2 Replies
10. Shell Programming and Scripting
I have an input file as below
Emp1|FirstName|MiddleName|LastName|Address|Pincode|PhoneNumber
1234|FirstName1|MiddleName2|LastName3| Add1 || ADD2|123|000000000
Output :
1234|FirstName1|MiddleName2|LastName3| Add1 ,, ADD2|123|000000000
OR
1234,FirstName1,MiddleName2,LastName3, Add1 ||... (2 Replies)
Discussion started by: styris
2 Replies
J0(3) BSD Library Functions Manual J0(3)
NAME
j0, j0f, j1, j1f, jn, jnf, y0, y0f, y1, y1f, yn, ynf -- Bessel functions of first and second kind
LIBRARY
Math Library (libm, -lm)
SYNOPSIS
#include <math.h>
double
j0(double x);
float
j0f(float x);
double
j1(double x);
float
j1f(float x);
double
jn(int n, double x);
float
jnf(int n, float x);
double
y0(double x);
float
y0f(float x);
double
y1(double x);
float
y1f(float x);
double
yn(int n, double x);
float
ynf(int n, float x);
DESCRIPTION
The functions j0(), j0f(), j1() and j1f() compute the Bessel function of the first kind of the order 0 and the order 1, respectively, for the
real value x; the functions jn() and jnf() compute the Bessel function of the first kind of the integer order n for the real value x.
The functions y0(), y0f(), y1(), and y1f() compute the linearly independent Bessel function of the second kind of the order 0 and the order
1, respectively, for the positive real value x; the functions yn() and ynf() compute the Bessel function of the second kind for the integer
order n for the positive real value x.
RETURN VALUES
These routines return values of their respective Bessel functions. For large positive inputs, they may underflow and return +-0.
The following applies to y0(), y0f(), y1(), y1f(), yn(), and ynf(). If x is negative, these routines will generate an invalid exception and
return NaN. If x is 0 or a sufficiently small positive number, these routines will generate an overflow exception and return -infinity.
SEE ALSO
math(3)
STANDARDS
The j0(), j1(), jn(), y0(), y1(), and yn() functions conform to IEEE Std 1003.1-2001 (``POSIX.1''). The float versions are extensions.
HISTORY
This set of functions appeared in Version 7 AT&T UNIX.
BSD
February 18, 2008 BSD