简体   繁体   中英

Formatting a shell command output

i just have a simple question on the output of the shell command.The below command lists all the directory owners directory name and create time and source how can i makes this look neati.e, how do i format it

find /disk/ui -name '.user.log'|xargs cat 
rtty        Demo1           Tue Mar  6 17:45:29 IST 2012
    /disk/ui/gh
nk    wee             Tue Mar  6 15:15:25 IST 2012
              /disk0116/ui/gg/
rtty        Test_sklgfx_main                Wed Mar 14 15:17:12 IST 2012
    /disk/ui/dtr2/
DH        Test_repo               Thu Mar 15 14:03:36 IST 2012
    /disk/ui/_dtr1

Also can i add a label on the top saying owner directory name created time and source.....

试着用

find /disk0116/ui -name '.user_repo.log'|xargs cat | column -t

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM