CompTIA Study Materials
AWS Study Materials
AWS Cloud Practitioner AWS Cloud Practitioner
AWS Cloud Practitioner CLF-C02
Microsoft Study Materials
Microsoft Azure Fundamentals Microsoft Azure Fundamentals
Microsoft Azure Fundamentals AZ-900

Free CompTIA Linux+ XK0-005 Practice Question

As a system administrator, you have received a file named 'logins.txt' containing a list of usernames. However, the usernames are separated by commas and you need them to be separated by newlines to process them in a script. Using the 'tr' command, how would you translate the commas into newline characters in a shell script?

  • tr '\n' ',' < logins.txt

  • tr -d ',' '\n' logins.txt

  • tr -s ',' '\n' logins.txt

  • tr ',' '\n' < logins.txt

Subscribe to avoid duplicate questions and track your progress over time
This question is for objective:
Scripting, Containers, and Automation
Your Score:
Scripting, Containers, and Automation
System Management
Security
Troubleshooting
SAVE $45