搜索结果
查询Tags标签: test2,共有 120条记录-
linux中如何使用变量提取连续的行
1、一般情况提取连续行 测试数据root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt >1 01 02 >2 03 04 >3 05 06 >4 07 08 >5 09 10 >6 11 12 >7 13 14 >8 15 16 >9 17 18 >10 19 20 2、sed实现,提取2到5行root@PC1…
2022/2/3 7:12:27 人评论 次浏览 -
linux中如何统计文件字符数
1、测试数据root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt a 3 5 d s g e z root@PC1:/home/test2# cat -A test.txt a 3 5 d$ s g e z$ 2、wc -croot@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt a 3 5 d s g e z root@…
2022/1/31 7:04:27 人评论 次浏览 -
linux中如何将多行数据转换为一行数据
1、测试数据root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt ## 测试数据 a 3 5 d s g e z c g w k z c m d 2、xargs实现(数据大时不适用)root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt a 3 5 d s g e z c g w k z…
2022/1/31 7:04:27 人评论 次浏览 -
Oracle dmp文件导入(还原)到不同的表空间和不同的用户下
一、exp/imp 解决方法 1、dmp文件包含导出时候表空间的信息,导入时候如果没有创建相应的表空间会提示表空间不存在2、如果几个表导出,导入时将错误忽略 ignore=y即可 3、用transport_tablespace参数,transport tablespace将一个表空间下的数据移到另一个表空间3.1、使用…
2022/1/26 19:05:50 人评论 次浏览 -
关于达梦8 的快速加载
dmfldr(DM fast Loader)是达梦 8 提供的快速数据加载的命令行。通过 dmfldr 命令行工具能够把按照特定格式排序的文本数据快速、高效的加载到 DM8 数据库系统中,或把 DM8 数据库中的表数据按照一定格式导出到文本文件。 示例1:将文本 test1.txt 中的数据加载到 DM8 中…
2022/1/26 6:05:47 人评论 次浏览 -
linux中如何删除^M符号
1、测试数据root@DESKTOP-1N42TVH:/home/test2# ls outcome.map root@DESKTOP-1N42TVH:/home/test2# cat -A outcome.map ## 末尾多出^M 1^Is64199.1^I0^I55910^M$ 1^IOAR19_64675012.1^I0^I85204^M$ 1^IOAR19_64715327.1^I0^I122948^M$ 1^IOAR19_64803054.1^I0^I203…
2022/1/6 7:04:47 人评论 次浏览 -
linux中如何删除^M符号
1、测试数据root@DESKTOP-1N42TVH:/home/test2# ls outcome.map root@DESKTOP-1N42TVH:/home/test2# cat -A outcome.map ## 末尾多出^M 1^Is64199.1^I0^I55910^M$ 1^IOAR19_64675012.1^I0^I85204^M$ 1^IOAR19_64715327.1^I0^I122948^M$ 1^IOAR19_64803054.1^I0^I203…
2022/1/6 7:04:47 人评论 次浏览 -
linux系统中sort命令对字符数字组合字符串进行排序
1、测试数据root@DESKTOP-1N42TVH:/home/test2# cat test.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 Chr4 Chr12 Chr6 Chr9 2、排序root@DESKTOP-1N42TVH:/home/test2# cat test.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 Chr4 Chr12 Chr6 Chr9 root@DESKTOP…
2022/1/3 7:11:07 人评论 次浏览 -
linux系统中sort命令对字符数字组合字符串进行排序
1、测试数据root@DESKTOP-1N42TVH:/home/test2# cat test.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 Chr4 Chr12 Chr6 Chr9 2、排序root@DESKTOP-1N42TVH:/home/test2# cat test.txt Chr1 Chr11 Chr7 Chr8 Chr10 Chr2 Chr5 Chr3 Chr4 Chr12 Chr6 Chr9 root@DESKTOP…
2022/1/3 7:11:07 人评论 次浏览 -
Java实战项目推荐,Java外卖点餐系统【附全部代码】
傻瓜式外卖点餐系统(无数据库) 项目源码和GitHub地址已经为大家整理好了,有需要的直接文末扫码领取。 tips:菜品类(菜品id,菜品名,菜品类型,上架时间,单价,月销售,总数量) 管理员类(管理员id,账号,密码) 客户类(客户id,客户名,性别,密码,送餐地址,手机…
2021/12/26 14:07:29 人评论 次浏览 -
Java实战项目推荐,Java外卖点餐系统【附全部代码】
傻瓜式外卖点餐系统(无数据库) 项目源码和GitHub地址已经为大家整理好了,有需要的直接文末扫码领取。 tips:菜品类(菜品id,菜品名,菜品类型,上架时间,单价,月销售,总数量) 管理员类(管理员id,账号,密码) 客户类(客户id,客户名,性别,密码,送餐地址,手机…
2021/12/26 14:07:29 人评论 次浏览 -
linux c随手记
1: 变量申明重复include 了相同的文件会报 redefinition 错误 比如 ============== test.c #include <stdio.h> #include "test1.c" #include "test2.c"============== test1.c #include "test2.c"============== test2.c int A=1; =…
2021/12/19 7:20:53 人评论 次浏览 -
linux c随手记
1: 变量申明重复include 了相同的文件会报 redefinition 错误 比如 ============== test.c #include <stdio.h> #include "test1.c" #include "test2.c"============== test1.c #include "test2.c"============== test2.c int A=1; =…
2021/12/19 7:20:53 人评论 次浏览 -
ubuntu中如何解压rar文件
1、问题 ubuntu中解压rar文件, 如下:root@PC1:/home/test2# ls test.rar root@PC1:/home/test2# unrar e test.rar -bash: /usr/bin/unrar: No such file or directory 2、解决方法, 安装unrarroot@PC1:/home/test2# apt install unrar Reading package lists... Done…
2021/12/17 7:21:28 人评论 次浏览 -
ubuntu中如何解压rar文件
1、问题 ubuntu中解压rar文件, 如下:root@PC1:/home/test2# ls test.rar root@PC1:/home/test2# unrar e test.rar -bash: /usr/bin/unrar: No such file or directory 2、解决方法, 安装unrarroot@PC1:/home/test2# apt install unrar Reading package lists... Done…
2021/12/17 7:21:28 人评论 次浏览