在记事本++中连接多列
Concat multiple columns in notepadd++
我有以下 2 列数据,我想在 notepadd++ 中将它们并排连接在一起。有人可以帮助如何做到这一点。
第 1 列
cluster_identifier
cluster_parameter_group
db_parameter_group
instance_class
cluster_instance_count
engine
第 2 列
= "{{ sdf.cluster_identifier }}"
= "{{ sdf.cluster_parameter_group }}"
= "{{ sdf.db_parameter_group }}"
= "{{ sdf.instance_class }}"
= "{{ sdf.cluster_instance_count }}"
= "{{ sdf.engine }}"
= "{{ sdf.engine_version }}"
记事本++的最终版本
cluster_identifier = "{{ sdf.cluster_identifier }}"
cluster_parameter_group = "{{ sdf.cluster_parameter_group }}"
db_parameter_group = "{{ sdf.db_parameter_group }}"
instance_class = "{{ sdf.instance_class }}"
cluster_instance_count = "{{ sdf.cluster_instance_count }}"
engine = "{{ sdf.engine }}"
engine_version = "{{ sdf.engine_version }}"
您可以使用柱状剪切和粘贴:
在第 2 列上使用 ^C 时按住 Alt 键,然后将它们粘贴到第 1 列第 1 行的末尾。
R
第二列似乎是从第一列构建的。然后我会做这样的事情:
- Ctrl+H
- 查找内容:
^.+$
- 替换为:
[=13=]\t= "{{ sdf.[=13=] }}"
- 检查 环绕
- 检查 正则表达式
- 取消选中
. matches newline
- 全部替换
解释:
^ # beginning of line
.+ # 1 or more any character but newline
$ # end of line
替换:
[=11=] # the whole match
\t # a tabulation
= "{{ sdf. # literally
[=11=] # the whole match
}}" # literally
截图(之前):
截图(后):
我有以下 2 列数据,我想在 notepadd++ 中将它们并排连接在一起。有人可以帮助如何做到这一点。
第 1 列
cluster_identifier
cluster_parameter_group
db_parameter_group
instance_class
cluster_instance_count
engine
第 2 列
= "{{ sdf.cluster_identifier }}"
= "{{ sdf.cluster_parameter_group }}"
= "{{ sdf.db_parameter_group }}"
= "{{ sdf.instance_class }}"
= "{{ sdf.cluster_instance_count }}"
= "{{ sdf.engine }}"
= "{{ sdf.engine_version }}"
记事本++的最终版本
cluster_identifier = "{{ sdf.cluster_identifier }}"
cluster_parameter_group = "{{ sdf.cluster_parameter_group }}"
db_parameter_group = "{{ sdf.db_parameter_group }}"
instance_class = "{{ sdf.instance_class }}"
cluster_instance_count = "{{ sdf.cluster_instance_count }}"
engine = "{{ sdf.engine }}"
engine_version = "{{ sdf.engine_version }}"
您可以使用柱状剪切和粘贴:
在第 2 列上使用 ^C 时按住 Alt 键,然后将它们粘贴到第 1 列第 1 行的末尾。
R
第二列似乎是从第一列构建的。然后我会做这样的事情:
- Ctrl+H
- 查找内容:
^.+$
- 替换为:
[=13=]\t= "{{ sdf.[=13=] }}"
- 检查 环绕
- 检查 正则表达式
- 取消选中
. matches newline
- 全部替换
解释:
^ # beginning of line
.+ # 1 or more any character but newline
$ # end of line
替换:
[=11=] # the whole match
\t # a tabulation
= "{{ sdf. # literally
[=11=] # the whole match
}}" # literally
截图(之前):
截图(后):