我想进行一个for循环,这样它将在2列中输出每个命令
示例:
主机名和whoami命令将以.csf文件格式输出:
A | B <hostname> | <username>
使用bash:
echo "$(hostname) | $(whoami)" > file.csv