I'm iterating over every file in a directory and attempting to find/replace the path part of the file with the following piece of code...

```
for f in /the/path/to/the/files/*
do
    file = $(echo $f | sec 's/\/the\/path\/to\/the\/files\///g`);
done  

```

However, I get the following error with the assignment part of my code...

```
cannot open `=' (No such file or directory)

```

What am I doing wrong?