Are these question important to answer my question? you know speech recognition. label speech signal in phone and word by byte of input signal.
Quote:
Concering your answer to question VIII in post #3: If your table is in "out of a code", how is an awk script supposed to be able to read it? Are you saying that you have/will hard code the table into a BEGIN clause in your awk script?
you assume that table save in a directory!
Quote:
Concerning your answer to question IX in post #3: If your table was in a file, the type "text" would say that there are no lines in the file containing more than LINE_MAX bytes (including the line-terminating <newline> characters, that the file contains no <NUL> bytes, and that if the file contains any characters at all the last character in the file is a <newline> character. That says nothing about how fields in your table are separated. It appears that you want the modified lines in your table to be written with the 1st field from the previous line whose first character is numeric followed by a single <space> character followed by the previous contents of that line of the table. Is that correct?
i think you say true.
i confuse. explain again.
i have a table that first line have four columns.
column one begin with digits and contain digits and underline. column two contain alphabet not digits and columns three and four contain only digits.
in following it has three columns similar before except first column.(color string)
i want copy color string in new lines until next new line begin by another (color) string
Quote:
If you can't describe how this table exists, we have great difficulty in making any suggestions as to how to process the table. The art of programming is all about understanding the format and type of the input to be processed, the type and format of the output desired, and the rules that specify how the input needs to be transformed to produce the output.
Quote:
One can learn a lot about awk (not AWK; utility names on UNIX, Linux, and BSD systems are case sensitive), editors, and other utilities by reading their manual pages on your system. For example, you can see the manual page for awk by typing the command:
[CODE]man awk[ICODE]
into your shell at a command prompt.
You can also look at hundreds (if not thousands) of threads in this forum that contain awk scripts to solve lots of different kinds of problems. Many of those scripts have comments that document what every line in the script is doing. For those that don't, if the thread is still open you can always and a post to a thread asking for an explanation of how that script works (or how particular lines in that script work). Use the advanced search feature in this forum for threads with tag "solved" and keyword "awk" for a list of 500 threads with examples.
One classic book describing awk is The AWK Programming Language published Jan 11, 1988 and written by the three authors of the utility Alfred V. Aho, Peter J. Weinberger, and Brian W. Kernighan.
Hi,
I have a abc.txt file.
In this file there is a SQL query which Iwant to copy and print it on another file.The query (for eg) is written like this:
SELECT field1,
field2,
field3
from table1,table2
where <conditions>
END
I want to copy this query to another... (3 Replies)
Hi all,
I'm a unix newb andI'm trying to write a script that can copy some text paste it in a certian place and then add a number. It's not really clear but I'll show an example.
what the file looks like right now:
Linux 2.6.24-24-generic (abc) 07/15/09
23:25:01 CPU ... (6 Replies)
Hi to all,
I have the short print out sample of the DOS command "dir S/" as showed below.
Directory of C:\Program Files\Winamp\Skins\Bento\window
02/12/2010 11:35 p.m. <DIR> .
02/12/2010 11:35 p.m. <DIR> ..
11/12/2009 10:31 a.m. 13,556... (3 Replies)
I've been trying to figure this out for quite a bit... I'm trying to check the first column for a period and only display the line if it contains a period. Below is a sample of the data i'm working with.
www.homestorest 7200 IN CNAME www.homestorest.fishing.net.shopit.net.... (6 Replies)
Hi,
I have a file (sorted by sort) with 8 tab delimited columns. The first column contains duplicated fields and I need to merge all these identical lines.
My input file:
comp100002 aaa bbb ccc ddd eee fff ggg
comp100003 aba aba aba aba aba aba aba
comp100003 fff fff fff fff fff fff fff... (5 Replies)
Hi experts, I have a tab-delimited file with one column containing values separated by a comma. I wish to duplicate the entire line for every value in that comma-delimited field.
For example:
$cat file
4444 4444 4444 4444
9990 2222,7777 6666 2222 ... (3 Replies)
Hi,
My input files is like this
axis1 0 1 10
axis2 0 1 5
axis1 1 2 -4
axis2 2 3 -3
axis1 3 4 5
axis2 3 4 -1
axis1 4 5 -6
axis2 4 5 1
Now, these are my following tasks
1. Print a first column for every two rows that has the same value followed by a string.
2. Match on the... (3 Replies)
Hi,
I have multiple files that each contain four columns of strings:
File1:
Code:
123 abc gfh 273
456 ddff jfh 837
789 ghi u4u 395
File2:
Code:
123 abc dd fu
456 def 457 nd
891 384 djh 783
I want to compare the strings in Column 1 of File 1 with each other file and Print in... (3 Replies)
Hello all,
I would like to ask your help here:
I've a huge file that has 2 columns. A part of it is:
sorted.txt:
kss23 rml.67lkj
kss23 zhh.6gf
kss23 nhd.09.fdd
kss23 hp.767.88.89
fl67 nmdsfs.56.df.67
fl67 kk.fgf.98.56.n
fl67 bgdgdfg.hjj.879.d
fl66 kl..hfh.76.ghg
fl66... (5 Replies)
Hi all
i want table file in pattern like under
ID(digits and underline) phonetic begin_byte(only plus number) end_byte(only plus number)
but
ID loose in next lines of my file
my input file like this:
input
001_1_174 474536 482492
mo 482492 504062
'er/ 504062 517352
ruze 517352... (1 Reply)