Hands-on task
This task is step 6 of the course “Bash: expansions, arrays and quoting”
Command substitution
Write to /root/info.txt a line of the form lines: N, where N is the number of lines in /etc/passwd, computed via command substitution.
What you'll practise:
- command substitution
- $( )
- wc
- input redirection