show nicely output of command

Discussion in 'Programming/Scripts' started by Poliman, Dec 11, 2018.

  1. Poliman

    Poliman Member

    I have a command:
    Code:
    fuser -m -u /mnt/disk
    and I would like to format the output in user firendly way, for example:
    Code:
    process_id       user
    here id          here name of the user
    I tried with awk and sort command but still wrong. In my case are users root, web*, vmail and www-data. The best if the informations would be sorted.
     

Share This Page