I have awk command to read the csv file with `|` sperator. I am using this command as part of my shell script where the columns to exclude will be removed from the output. The list of columns are input as `1 2 3`

Command Reference: <http://wiki.bash-hackers.org/snipplets/awkcsv>

```
 awk -v FS='"| "|^"|"$' '{for i in $test; do $(echo $i=""); done  print }' test.csv

```

`$test is 1 2 3`

I want to print `$1="" $2="" $3=""` in front of `print` all columns. I am getting this error

```
awk: {for i in $test; do $(echo $i=""); done  {print }
awk:      ^ syntax error

```

This command is working properly which prints all the columns

`awk -v FS='"| "|^"|"$' '{print }' test.csv`

File 1

```
"first"| "second"| "last"
"fir|st"| "second"| "last"
"firtst one"| "sec|ond field"| "final|ly"

```

Expected output if I want to exclude the column 2 and 3 dynamically

```
first
fir|st
firtst one

```

I need help to keep the for loop properly.