- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Indenting Text and Removing Whitespace with Emacs
In this lab, you will be adding and removing whitespace from text files. Basic knowledge of opening files, along with familiarity of working with Emacs whitespace, is recommended. Upon completing this lab, you will know how to work with whitespace in Emacs and how to use line and region indentation.

Lab Info
Table of Contents
-
Challenge
Open the Files
- Open the file
/tmp/remove_whitespace
. - Open the file
/tmp/add_indentation
.
- Open the file
-
Challenge
Correct Whitespace
- Remove all the empty lines from the file
/tmp/remove_whitespace
. - Remove leading and trailing whitespace from
/tmp/remove_whitespace
.
- Remove all the empty lines from the file
-
Challenge
Correct Indentation
- Follow the instructions in Section 1 of the file
/tmp/add_indentation
to complete the line indentation. - Follow the instructions in Section 2 of the file
/tmp/add_indentation
to complete the region indentation.
- Follow the instructions in Section 1 of the file
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.