

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Stash
incomplete
2: Pop
incomplete
3: What Is the Stash
incomplete
4: Multiple Stashes
incomplete
5: Unrelated Commit
incomplete
6: Pop Again
incomplete
This lesson's interactive features are locked, please to keep using them
Now that you've safely stashed your current work away, let's go tackle the CEO's "urgent matter".
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.