【发布时间】:2012-01-02 06:45:02
【问题描述】:
我有示例文件:test_file
//--- Test File--
**RUN_THIS
RUN_THIS00
RUN_THIS01
DONT_RUN00
DONT_RUN00
RUN_THIS02**
RUN_THIS* & DONT_RUN* 是命令。
我想只从 test_file 运行 RUN_THIS 命令而不编辑文件。
我正在寻找类似的选项
cat test_file | grep RUN_THIS | xargs {Some option to be provided to run run_this}
我无法启动新的 shell
【问题讨论】:
标签: command-line sh xargs