I want to run a shell script while ignoring some of the commands, because they need privileges. Commands like `insmod`. So I filter the script with this, and it works (those commands are replaced by `true`):

```
sed -e 's/command1/true/g' -e 's/command2/true/g' -e 's/command3/true/g' ... -e 's/commandN/true/g'

```

Is there a more concise way of expressing that?

With simple caracters, to change 'a', 'b', and 'm' into an 'x' I could do something like:

```
sed -e 's/[abm]/x/g'

```

or

```
tr abm x

```

(or its `tr abm '[x*]'` POSIX equivalent). But with strings?