<p>I have a filename in a format like:</p>

<blockquote>
  <p><code>system-source-yyyymmdd.dat</code></p>
</blockquote>

<p>I'd like to be able to parse out the different bits of the filename using the "-" as a delimiter.</p>

Use the
```
cut
```
command.
e.g.
```
```
echo "system-source-yyyymmdd.dat" | cut -f1 -d'-'
```
```
will extract the first bit.
Change the value of the
```
-f
```
parameter to get the appropriate parts.
Here's a guide on the
Cut
command.