gpa...@gmail.com <
gpa...@gmail.com> wrote:
> Dear Experts,
>
> I am able to print the required columns in an output file with awk
> command using following command in a .SH file
> awk '{ print $1,$2,$5,$6 }' input_file1 > output_file2
>
> I want achieve the same thing using tcl command
> But when i used following command in a .TCL, file it throws the following error
> exec awk '{ print $1,$2,$5,$6 }' input_file1 > output_file2
> can't read "1": no such variable
But you didn't use a Tcl command. You simply attempted to call awk