che*_*run 2 sorting vi vim emacs nano
我有给定的文字:
# Blub
Hello this is a blub text.
# Bla
This is the bla text.
# Abba
Another text.
Run Code Online (Sandbox Code Playgroud)
有可能用#?对线条进行排序?这样生成的文本是:
# Abba
Another text.
# Bla
This the bla text.
# Blub
Hello this is a blub text.
Run Code Online (Sandbox Code Playgroud)
最好使用vim或emacs.
在Emacs,
sort-regexp-fields#[^#]*\&第一个正则表达式用于分隔记录,第二个正则表达式用于排序.
如果您可以自由选择标记字符而*不是使用#,则可以使用org-mode命令org-sort-entries,这样可以避免进入正则表达式.
| 归档时间: |
|
| 查看次数: |
215 次 |
| 最近记录: |