|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
auto generation of files using awk
hello guys,
i want to genarate automatically a file which has 5 fields each Is it possible to initialize the NF( to 5) and NR( to 10 lines) using BEGIN in the awk script. The script will populate each file with data. what's the syntax for outputing the data into these files??? I have the logic to do so , but having trouble with the syntax of awk langauge.. |
|
#2
|
|||
|
|||
|
I DO NOT AGREE
a) ... I have the logic to do so , but having trouble with the syntax of awk langauge.. NO, you have no idea about the logic b) you have no idea about awk (and other) languages c) you have no idea about the problem try to analyze the probl.
__________________
working on Solaris[5-9], preferred languages french and C. |
|
#3
|
|||
|
|||
|
Sorry,
but you cannot set neither NF nor NR. They are set by awk when reading input. Look at man awk. There is no help to you if you do not specify your point more precisely. Say what is the original form of your data. Then you can format it using awk or other tool, whatever is most appropriate. If you say what is necessary, I can help you. Regards zlutovsky |
|
#4
|
|||
|
|||
|
When is your assignment due?
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > auto generation of files using awk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|