
June 29th, 2005, 05:57 PM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 16
Time spent in forums: 3 h 35 m 4 sec
Reputation Power: 0
|
|
|
awk script help needed
hi frnds,
im writing a script in awk that will auto generate files that will have 5 fields and 10 lines each( filenames cud be file1,file2 etc).. Is it possible to initialize NF to 5 and NR to 10 in the BEGIN clause by just assigning them these values???????
The awk script will populate each of the 5 fields with data and store this in the files generated.
What is the way of outputting data in a file( eg if i have a file , data.txt how do I output the data into this file using awk script???)
|