shell commands general output for json and table function