We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Unrelated Commit

Now that you've safely stashed your current work away, let's go tackle the CEO's "urgent matter".

Assignment

Megacorp's apux.sh script truly is a feat of engineering. It behaves exactly like the sh (bourne shell) language, but if the word "sh" is ever mentioned in stdout, it will replace it with "apux". It's a feature that the customers love, but it's not working!

# Use the apux language to run the `scan.sh` script
./scripts/apux.sh ./scripts/scan.sh | grep ' sh'

The grep command should filter the output down to lines that contain sh. You should see a couple of lines... which means apux.sh isn't doing its job! The culprit is this line:

sed 's/bash/apux/g'

The sed command is replacing every instance of the text "bash" instead of "sh"!

./scripts/apux.sh ./scripts/scan.sh | grep ' apux'

Instead of seeing instances of " sh", you should see " apux":

Run and submit the CLI tests from the root of your repo.