I think I mentioned once before that I have been working at a nix command line for some time. Decided to take the LPI essentials then sysadmin 1 to fill in blanks then cert.
The question is given in the attachment.
My solution that doesn't quite match the "single command" requirement.
apropos editor | cut -d" " -f1 | sort -u | while read x junk
which $x 2>/dev/null >> elist
tar -zcvf all_editors.tar $(<elist)
tar -tf all_editors.tar
The instructions say a single command.
1. Not sure how to find editors without using which. Locate isnt very pretty.
2. then Im not sure of anyother way to find the location of each item without puttting it through a loop and bumping each againsts which.
Which is basically what I did in the script.