Please guide me to get out of it. Thanks in advance.
I am having a situation that I have to write a awk script which takes the input of two .out files and generate a single .txt file.
$ cat file1.sh
awk -f awk_file.awk < outfile1.out outfile2.out > text_file.txt
I want to display the .txt file like,
----------------Output from File1----------
column1 column2 column3
--------------------------------------------
columns i will pick from outfile1.out
columns i will pick from outfile1.out
--------------------------------------------
Total no. of columns from outfile1.out
//////////////////////////////////////////////// ----------------Output from File2----------
column1 column2 column3 column4 column5
-------------------------------------------
columns i will pick from outfile2.out
columns i will pick from outfile2.out
columns i will pick from outfile2.out
columns i will pick from outfile2.out
----------------------------------------
Total no. of columns from outfile2.out
How resulting the text_file.txt???
Aucun commentaire:
Enregistrer un commentaire