shell攻略-以文件之名
来源:互联网 发布:淘宝的食品流通许可证 编辑:程序博客网 时间:2024/04/28 00:08
[root@localhost ~]# dd if=/dev/sda of=/home/hadoop/桌面/MBR.bak bs=512 count=1
记录了1+0 的读入
记录了1+0 的写出
512字节(512 B)已复制,4.238e-05 秒,12.1 MB/秒
差集
[hadoop@localhost 桌面]$ echo -e "apple\norange\ngold">A.txt
[hadoop@localhost 桌面]$ echo -e "orange\niron">B.txt
[hadoop@localhost 桌面]$ sort A.txt -o A.txt
[hadoop@localhost 桌面]$ cat A.txt
apple
gold
orange
[hadoop@localhost 桌面]$ sort B.txt -o B.txt
[hadoop@localhost 桌面]$ cat B.txt
iron
orange
[hadoop@localhost 桌面]$ comm A.txt B.txt
apple
gold
iron
orange
[hadoop@localhost 桌面]$ comm A.txt B.txt -1 -2
orange
[hadoop@localhost 桌面]$ comm A.txt B.txt -3
apple
gold
iron
[hadoop@localhost 桌面]$ comm A.txt B.txt -3 |sed 's/^\t//'
apple
gold
iron
[hadoop@localhost 桌面]$ dd if=/dev/cdrom of=image.iso
记录了1+0 的读入
记录了1+0 的写出
512字节(512 B)已复制,4.238e-05 秒,12.1 MB/秒
差集
[hadoop@localhost 桌面]$ echo -e "apple\norange\ngold">A.txt
[hadoop@localhost 桌面]$ echo -e "orange\niron">B.txt
[hadoop@localhost 桌面]$ sort A.txt -o A.txt
[hadoop@localhost 桌面]$ cat A.txt
apple
gold
orange
[hadoop@localhost 桌面]$ sort B.txt -o B.txt
[hadoop@localhost 桌面]$ cat B.txt
iron
orange
[hadoop@localhost 桌面]$ comm A.txt B.txt
apple
gold
iron
orange
[hadoop@localhost 桌面]$ comm A.txt B.txt -1 -2
orange
[hadoop@localhost 桌面]$ comm A.txt B.txt -3
apple
gold
iron
[hadoop@localhost 桌面]$ comm A.txt B.txt -3 |sed 's/^\t//'
apple
gold
iron
[hadoop@localhost 桌面]$ dd if=/dev/cdrom of=image.iso
- shell攻略-以文件之名
- Linux Shell 脚本攻略 - 第三章 以文件之名
- linux shell脚本攻略 学习笔记3 -- 第三章 以文件之名
- Linux脚本攻略第三章总结----以文件之名
- Linux Shell脚本攻略笔记3之以文件为名
- SHELL笔记之以文件之名(三)
- Shell脚本学习——[以文件之名]
- Linux Shell编程(3)—以文件之名
- Linux Shell 学习(三) 以文件之名
- 以文件之名
- 以佛之名
- 以博客之名
- 以遗忘之名
- 以父之名
- 以优化之名
- Linux_shell——第3章 以文件之名
- shell攻略-命令之乐
- shell 脚本攻略-find 文件查找总结
- gdb调试.docx
- DEDE日期调用小插件
- shell攻略-命令之乐
- VMWare Debian GNU/Linux 图形界面安装 [大三四八九月实习]
- android 文件查找具体实现详解
- shell攻略-以文件之名
- 【修复】【兼容iOS7】Cocos2d-x 隐藏iOS7状态栏
- C++异常机制的实现方式和开销分析
- android代码重构之按钮部分的代码重构
- Setting property 'source' to 'org.eclipse.jst.jee.server
- 命令模式
- 阿里 测试开发岗位 面试总结
- 黑马程序员--Java基础加强学习笔记之Class类、反射(Reflect)
- java数组复制与排序