How to print the following information with a single linux command line?