Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将如何解析
#extra_modules some string
在 kdump.conf 文件中获取“一些字符串”作为 bash 脚本中的实际输出?
谢谢 !
grep "#extra_modules" kdump.conf | cut -c 16-
grep 找到带有短语“#extra_modules”的行,并 cut 选择第一个空格之后的所有字符