|
awk '/%{/ {clvl++;} clvl==0 {print} /%}/ {clvl--;}' some_matlab.m |grep -Ev '^\s*$|^\s*%'
vim 可以使用 foldmethod, foldmarker的方法来显示,另文说明。
Copyright ©2011-2014 bbs.06climate.com All Rights Reserved. Powered by Discuz! (京ICP-10201084)
本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论