Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
awk '{if($0~"outoutT") print}' log.compressibleInterFoamTest
提取log.compressibleInterFoamTest文件中含有outoutT关键词的整个一行信息
Thanks for sharing: https://github.com/randomwangran/TEM/commit/539d6b7adacdd6092a7a029b49b7cd4b67352f3e
paste <(cat log.QEEFoam | grep '^Time' | awk '{print $3}') <(cat log.QEEFoam | grep 'Drag' | awk '{print $3}')
https://www.cfd-china.com/topic/4827/提取log文件中的一些信息/4
@xpqiu 大佬玩的太溜咯
有个简洁版的 grep "Time" log
grep "Time" log
输出到文件就 grep "Time" log > log.Time
grep "Time" log > log.Time
接着在搜索结果中搜就 grep "Time" log | grep "0.01" > log.Time_0.01
grep "Time" log | grep "0.01" > log.Time_0.01
要是一堆算例,就在高层文件夹一起抓 grep -r "Time" ./
grep -r "Time" ./
抓的结果中有文件、路径名,可以再按文件抓,写个循环输出什么的
@bestucan 你们都溜的很啊!