Quote:
Originally Posted by
alii
can't thesis about IT-field?
Please write your answers as complete sentences.
Quote:
Originally Posted by
alii
may help me or NOT?
In what field of study is your research?
What is the title of your thesis?
What degree are you seeking?
Who is your thesis advisor?
At what university are you studying?
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?
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?
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.
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:
man awk
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.