答案 0 :(得分:1)
如果你想使用shell,请使用perl而不是emacs:
给出这个文件:
cat new.txt 一些标题
不关心潮流(护理)dc dc dc
0.00 17.873 5 bla kuku
1.00 36.53 lkfj kuku 42
@Entity
@Table(name="svc_category")
@JsonIdentityInfo(generator=ObjectIdGenerators.PropertyGenerator.class, property="id")
public class ServiceCategoryDomain extends BaseDomain{
private static final long serialVersionUID = -5873300401604877065L;
@Column(name="svc_cde")
@NotNull
private Integer svcCode;
@Column(name="svc_name")
@NotNull
private String svcName;
@JsonBackReference("parent")
@ManyToOne
private ServiceCategoryDomain parent;
@JsonManagedReference("children")
@OneToMany (cascade = {CascadeType.ALL},mappedBy="parent")
private Collection<ServiceCategoryDomain> children=new ArrayList<>();
..................
}
一些标题
不关心潮流(护理)dc dc dc
0.00 0.17873 5 bla kuku
1.00 0.3653 lkfj kuku 42
答案 1 :(得分:0)
如何使用emacs组织模式将第二列除以10
1) mark region
Col1 Col2 Col3
1 2 3
4 5 6
7 8 9
10 11 12
2) M-x, then org-table-create-or-convert-from-region
3) insert a horizontal line to seperate the column headers from the
data by putting a: ‘|-‘ (without the quotes) one the line and hit
the tab button
should look like:
| Col1 | Col2 | Col3 |
|------+------+------|
| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |
| 10 | 11 | 12 |
4) org-table-eval-formula, but for whole column:
‘C-5 C-c =’
5) then type the formula as $2/10.0 so that the prompt looks like:
Column formula $2=$2/10.0
should look like:
| Col1 | Col2 | Col3 |
|------+------+------|
| 1 | 0.2 | 3 |
| 4 | 0.5 | 6 |
| 7 | 0.8 | 9 |
| 10 | 1.1 | 12 |
#+TBLFM: $2=$2/10.0
there are a bunch of export options