Question: I'd like to use the sed command to get rid of some dashes in a string (inside a file), i.e., the file has a line that says:

```
TEXT=abcdef-lalala-someText-yahoo

```

After the sed execution, that line should look like:

```
TEXT=abcdeflalalasomeTextyahoo

```

Thanks in advance

Answer: 
Here you go:

```
echo "TEXT=abcdef-lalala-someText-yahoo" | sed 's/-//g'
TEXT=abcdeflalalasomeTextyahoo

```
Here it is my two cents... You can add the match (TEXT=) before the substitute command... Just like this:

```
sed '/TEXT=/s/-//g'

```

The results will be:

```
echo "TEXT=abcdef-lalala-someText-yahoo" | sed '/TEXT=/s/-//g'
TEXT=abcdeflalalasomeTextyahoo

```

The substitute command will only be executed when match the first clause, in this case, match "TEXT=". I think that the command will be simpler and more elegant.