Dear All,
I have a comma-separated file.
1. The first line of the file(header) should have 4 commas(5 fields).
2. The last line of the file should have 1 comma(2 fields).
Pls help me in checking this condition in a shell script.
And the number of lines between the first line and last... (11 Replies)
I have a csv file with lines like the followings
123456,"ABC CO., LTD","XXX"
789012,"DEF LIMITED", "XXX"
before I bcp this file to database, the comma in "CO.," need to be removed first.
My script is cat <filename> | sed 's/"CO.,"/"CO."/g'
but it doesn't work. Can anyone here able to... (2 Replies)
I have a situation where I am reading a text file line-by-line. Those lines of data contain comma separated fields of data. However, each line can vary in the number of fields it can contain. What I need to do is parse apart each line and write each field of data found (left to right) into a file.... (7 Replies)
Hi Friends,
I'm working on a perl script, which seems to be simpler. But I'm very new to PERL scripting.
I have a comma separated data file, from which I need to extract only the seventh field data out of available twenty fields to an array using perl.
Any help would be much appreciated.
... (17 Replies)
Guys,
Need you help, i have a a file content that look like this.
Nokia 3330 <spaces><spaces><more spaces>+76451883874
Nokia 3610 +87467361615
so on and so forth,
- there are so many spaces in between.
- e.g.... (5 Replies)
I have a list of files with the same name, but they have a different date stamp in the name. I can find the first file, but I need to find the second file. I am using this information to create a variable I use later. Here is a example of how I find the first file.
"ls -mr... (11 Replies)
Hi, all
I need to get fields in a line that are separated by commas, some of the fields are enclosed with double quotes, and they are supposed to be treated as a single field even if there are commas inside the quotes.
sample input:
for this line, 5 fields are supposed to be extracted, they... (8 Replies)
I need to arrange output of SQL query into a comma separated format and I'm struggling with processing the output...
The output is something like this:
<Attribute1 name><x amount of white spaces><Atribute value>
<Attribute2 name><x amount of white spaces><Atribute value>
<Attribute3... (2 Replies)
Hello there,
I have a comma separated csv , and all the text field is wrapped by double quote. Issue is some text field contain comma as well inside double quote. so it is difficult to process.
Input in the csv file is ,
1,234,"abc,12,gh","GH234TY",34
I need output like below,... (8 Replies)
I am trying to re-format a .csv file using awk. I have 6 fields in the .csv file. Some of the fields are enclosed in double quotes and contain comma's inside the quotes. awk is breaking this into multiple fields.
Sample lines from the .csv file:
Device Name,Personnel,Date,Solution... (1 Reply)
Discussion started by: jxrst
1 Replies
LEARN ABOUT REDHAT
txt2pdbdoc
txt2pdbdoc(1) General Commands Manual txt2pdbdoc(1)NAME
txt2pdbdoc - Text to Doc file converter for Palm Pilots
SYNOPSIS
txt2pdbdoc [-b] [-c] [-v] document-name file.txt file.pdb
txt2pdbdoc -d [-D] [-v] file.pdb [ file.txt ]
txt2pdbdoc -V
DESCRIPTION
txt2pdbdoc converts a plain text file to a Doc(4) file in PDB (Pilot Database) format used by all models of the Palm Pilot. (It can also
convert a Doc file to plain text.) Resultant PDB files can be downloaded directly to a Pilot during a HotSync.
The document-name is used in the Document List view of a Doc reader application on the Pilot.
OPTIONS -b Ordinarily, characters with an ASCII code less than 9 are removed and both carriage-returns and form-feeds are converted to newlines.
This option suppresses that behavior.
-c Ordinarily, text is compressed. This option suppresses compression.
-d Decode the given Doc file to text either to a file or to standard output if no file is specified.
-D Do not check the file type/creator of the file to decode. This option should be specified only if you know for sure that the file is
in fact some sort of Doc file. Attempting to decode non-Doc files will result in undefined behavior and quite possibly crash.
-v Verbose mode. For encoding, print progress and compression statistics per 4K of text to standard error as well as overall statistics
when completed; for decoding, print progress in a ``countdown'' style.
-V Print the version number of txt2pdbdoc to standard output and exit.
EXAMPLE
To convert a text file to Doc file:
txt2pdbdoc 'Through the Looking Glass' alice.txt alice.pdb
EXIT STATUS
Exits with one of the values given below:
0 Success.
1 Error in command-line options or use.
2 Unable to open source file.
3 Unable to open destination file.
4 Unable to read file.
5 Unable to write file.
6 File is not a Doc file.
7 Doc file uses unknown compression type.
CAVEATS
1. Document names are limited to 31 characters in PDB format. Longer names are truncated but have the 29-31st characters replaced by
``...'' to indicate truncation.
2. The command isn't called ``txt2doc'' to avoid confusion about possibly having anything to do with Microsoft Word documents that use the
.doc extension.
SEE ALSO html2pdbtxt(1), pdbtxt2html(1), doc(4), pdb(4)AUTHOR
Paul J. Lucas <pauljlucas@mac.com>
txt2pdbdoc January 21, 2005 txt2pdbdoc(1)