2024-04-20 01:13:19 发布
网友
将example.csv中包含“joe”、“john,11”的所有行复制到名为example.txt的文件中
如果不介意覆盖example.txt,可以使用grep
grep -e 'joe' -e 'john,11' example.csv > example.txt
如果要追加,只需使用>>而不是>
>>
>
如果不介意覆盖example.txt,可以使用grep
如果要追加,只需使用
>>
而不是>
相关问题 更多 >
编程相关推荐