Correct Answer: Sed -i '/^$/d' textfile
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Bash Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Bash MCQ Questions
Assuming that user1 existed, what would be the result of this command string? awk -F: '/user1/{print $1 "-" $3 "-" $6}' /etc/passwd
What happens if you use the "set -e" in a Bash script?
The _ keyword pauses the script to get input from standard input.
If file.sql holds SQL statements to be executed, what will be in file.txt? mysql < file.sql > file.txt
How does the SUID or setuid affect executable commands?
To assign the command ls -lah to the shortcut command lh, what command should you use?
How can you copy a directory to another system with compression?
What are the results of the command with a user named jon? echo 'Hello, $(whoami)!'
To run a group of commands without spawning a subshell, which syntax would you use?
When comparing items with case, what statement indicates an end to the evaluation block?