I have a script that uses awk with parameters but I can't find the right syntax to make it functionnal. May be could you help me ?
(under osx, terminal, zsh, command line)

I get a variable who is the path name (it's a awk result)

path\_dir="/picture/dir/'

After, I ask this:

```
awk -F"/" '{print $2}' $path_dir

```

But it doesn't work. I get:

```
cant' open file $path_dir

```

My goal is to do this:

```
dir_name=awk -F "/" '{print $2}' $path_dir

```

Then, to use

```
$dir_name

```

But first, awk can't read my `$path_dir`

Any idea ?

Thank you