如何解决如何 grep --help 找到该部分?
我知道我的问题措辞令人困惑,让我解释一下。我的疑问是关于使用 grep 从 --help 查找信息而不是滚动浏览。我想找到部分/章节,而不仅仅是提及。我正在使用 youtube-dl 作为示例。我希望有效地使用 CLI 来阅读文档。
当我跑步时:
$ youtube-dl --help | grep -e "--extract-audio"
-x,--extract-audio Convert video files to audio-only files
但是当我查看 youtube-dll --help
时,我需要更多相关信息:
-x,--extract-audio Convert video files to audio-only files
(requires ffmpeg or avconv and ffprobe or
avprobe)
--audio-format FORMAT Specify audio format: "best","aac","flac","mp3","m4a","opus","vorbis",or
"wav"; "best" by default; No effect without
-x
--audio-quality QUALITY Specify ffmpeg/avconv audio quality,insert
a value between 0 (better) and 9 (worse)
for VBR or a specific bitrate like 128K
(default 5)
--recode-video FORMAT Encode the video to another format if
necessary (currently supported:
mp4|flv|ogg|webm|mkv|avi)
--postprocessor-args ARGS Give these arguments to the postprocessor
所以,我的问题是如何使用 grep 或者是否有其他更好的工具来查找信息。由于“-x”是我正在寻找的函数,但我想知道我必须使用的所有修饰符 (--)。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。