我正在尝试将命令的输出保存到文件中,它似乎工作正常。但是,当打开其中一个文件时,我可以看到输出的宽度限制为 80 个字符。如何确保输出没有被包装?我尝试将 a 放在tput rmam;
shell 脚本的开头,但它似乎并没有改变输出行为。
脚本:
#!/usr/bin/env bash
CPUS=$(cat /proc/cpuinfo | grep "processor" | wc -l)
ansible-doc -l | cut -d " " -f1 > modules.txt
parallel --tmpdir src/yaml-snippets --files -a modules.txt -j$CPUS ansible-doc -s {}
输出示例:
- name: Module to manage datacenter quotas in oVirt/RHV
ovirt_quota:
auth: # (required) Dictionary with values needed to
create HTTP/HTTPS
connection to
oVirt: `username'
[`required'] -
The name of the
user, something
like
`admin@internal'.
Default value is
set by
`OVIRT_USERNAME'
environment
variable. `passwo