I'm a beginner in bash. I have a .csv file. It contains 2 columns (Name and Num). Here is the content of columns:

```
Name, Num 
ex1, 10.20.30.40 
ex2, 20.30.40.30 
ex3, 10.45.60.20 
ex4, 10.20.30.40

```

I want to select the rows that their 2nd column is equal to $Number (For example "10.20.30.40"). I use this script:

```
awk -F, '$2 == $Number' name.csv >output.txt

```

but after executing the code, "output.txt" is empty. When I echo the found values, it doesn't show anything either. What's wrong?

I also want to access to the value that is stored in the first column of this row. How should I do this?