Category: Linux
Difficulty: Intermediate
As systems admins and programmers we can forget that other people have had the same issues and it leads to us re-inventing the wheel. So, let's re-invent a wheel.
Write a bash script, using the output from the 'lsof' command, to implement something that provides output like the 'pstree -Ap' command. I strongly suggest you read the man page for lsof.
Bonus points for providing ANSI output, pstree without the -A flag.