09-25-2011
Is that color is essential?? because we cant able to understand your requirement??
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I have a file with single white space delimited values, I want to convert them to a tab delimited file.
I tried sed, tr ... but nothing is working.
Thanks,
Rajeevan D (16 Replies)
Discussion started by: jeevs81
16 Replies
2. Shell Programming and Scripting
i have a file whose data is like this::
osr_pe_assign|-120|wg000d@att.com|4|
osr_evt|-21|wg000d@att.com|4|
pe_avail|-21|wg000d@att.com|4|
osr_svt|-11|wg000d@att.com|4|
pe_mop|-13|wg000d@att.com|4|
instar_ready|-35|wg000d@att.com|4|
nsdnet_ready|-90|wg000d@att.com|4|... (6 Replies)
Discussion started by: priyanka3006
6 Replies
3. Shell Programming and Scripting
Hi, could some help me convert CSV file (with double quoted strings) to pipe delimited file:
here you go with the same data:
1,Friends,"$3.99 per 1,000 listings",8158here " 1,000 listings " should be a single field.
Thanks,
Ram (8 Replies)
Discussion started by: Ram.Math
8 Replies
4. Shell Programming and Scripting
I have a file which was pipe delimited, I need to make it tab delimited. I tried with sed but no use
cat file | sed 's/|//t/g'
The above command substituted "/t" not tab in the place of pipe.
Sample file:
abc|123|2012-01-30|2012-04-28|xyz
have to convert to:
abc 123... (6 Replies)
Discussion started by: karumudi7
6 Replies
5. Shell Programming and Scripting
Hi How to make tab delimited file to space delimited?
in put file:
ABC kgy
jkh ghj
ash kjl
o/p file:
ABC kgy
jkh ghj
ash kjl
Use code tags, thanks. (1 Reply)
Discussion started by: jagdishrout
1 Replies
6. Shell Programming and Scripting
Hello,
I have a text file with space and tab (mixed) delimited file and need to convert into CSV.
# cat test.txt
/dev/rmt/tsmmt32 HP Ultrium 6-SCSI J3LZ 50:03:08:c0:02:72:c0:b5 F00272C0B5 0/0/6/1/1.145.17.255.0.0.0 /dev/rmt/c102t0d0BEST
/dev/rmt/tsmmt37 ... (6 Replies)
Discussion started by: prvnrk
6 Replies
7. UNIX for Dummies Questions & Answers
Hi, I have a rquirement in unix as below .
I have a text file with me seperated by | symbol and i need to generate a excel file through unix commands/script so that each value will go to each column.
ex:
Input Text file:
1|A|apple
2|B|bottle
excel file to be generated as output as... (9 Replies)
Discussion started by: raja kakitapall
9 Replies
8. Shell Programming and Scripting
Hello, I need to get few values from a XML file and output needs to be written in another file with pipe delimited format. The Header & Footer of the Pipe Delimited file will be constant.
The below is my sample XML file. I need to pull the values in between the XML tags <Operator_info to... (15 Replies)
Discussion started by: karthi1305561
15 Replies
9. Shell Programming and Scripting
Hi All,
How can we convert pipe delimited ( or comma ) file to vertical tab (VT) delimited.
Regards
PK (4 Replies)
Discussion started by: prasson_ibm
4 Replies
10. Shell Programming and Scripting
I have file in linux with comma delimited and string fields in double quotations ", I need to convert them to pipe delimiter please share your inputs.
Example:
Input:
"2017-09-30","ACBD,TVF","01234",NULL,18,NULL,"686091802","BANK OF ABCD, LIMITED, THE",790456
Output:
... (4 Replies)
Discussion started by: shieksir
4 Replies
LEARN ABOUT DEBIAN
sdrstring
ici::doc::pod3::sdrstring(3) ICI library functions ici::doc::pod3::sdrstring(3)
NAME
sdrstring - Simple Data Recorder string functions
SYNOPSIS
#include "sdr.h"
Object sdr_string_create (Sdr sdr, char *from);
Object sdr_string_dup (Sdr sdr, Object from);
int sdr_string_length (Sdr sdr, Object string);
int sdr_string_read (Sdr sdr, char *into, Object string);
DESCRIPTION
SDR strings are used to record strings of up to 255 ASCII characters in the heap space of an SDR. Unlike standard C strings, which are
terminated by a zero byte, SDR strings record the length of the string as part of the string object.
To store strings longer than 255 characters, use sdr_malloc() and sdr_write() instead of these functions.
Object sdr_string_create(Sdr sdr, char *from)
Creates a "self-delimited string" in the heap of the indicated SDR, allocating the required space and copying the indicated content.
from must be a standard C string for which strlen() must not exceed 255; if it does, or if insufficient SDR space is available, 0 is
returned. Otherwise the address of the newly created SDR string object is returned. To destroy, just use sdr_free().
Object sdr_string_dup(Sdr sdr, Object from)
Creates a duplicate of the SDR string whose address is from, allocating the required space and copying the original string's content.
If insufficient SDR space is available, 0 is returned. Otherwise the address of the newly created copy of the original SDR string
object is returned. To destroy, use sdr_free().
int sdr_string_length(Sdr sdr, Object string)
Returns the length of the indicated self-delimited string (as would be returned by strlen()), or -1 on any error.
int sdr_string_read(Sdr sdr, char *into, Object string)
Retrieves the content of the indicated self-delimited string into memory as a standard C string (NULL terminated). Length of into
should normally be SDRSTRING_BUFSZ (i.e., 256) to allow for the largest possible SDR string (255 characters) plus the terminating NULL.
Returns length of string (as would be returned by strlen()), or -1 on any error.
SEE ALSO
sdr(3), sdrlist(3), sdrtable(3), string(3)
perl v5.14.2 2012-05-25 ici::doc::pod3::sdrstring(3)