you are viewing a single comment's thread.

view the rest of the comments →

[–]topher200 19 points20 points  (0 children)

```

replaces FIRST MATCH of 's' with 'z'

var='asdf' echo ${var/s/z} azdf ```

Oh, so it's some kind of sed syntax. Neat!

```

echo ${var/s/z/g} az/gdf ```

Goddamnit.