`
贫僧不吃肉
  • 浏览: 62973 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Just Unix基础重温之cat

阅读更多

cat 的用途很多,文件编辑的时候也常常使用。

1. 查看文件

       $ cat daily_log

just for myself

I just love u

end

(行数较多的时候可以使用moreless 分屏查看)

 

2. 拼接文件

  

$ cal 1 2011 > 1

$ cal 2 2011 > 2

$ cat 1 2 > calender

 

(把2个月的日历输出到calender里面) 

$ cat calendar

(查看calender文件)

     January 2011

Su Mo Tu We Th Fr Sa

                   1

 2  3  4  5  6  7  8

 9 10 11 12 13 14 15

16 17 18 19 20 21 22

23 24 25 26 27 28 29

30 31

    February 2011

Su Mo Tu We Th Fr Sa

       1  2  3  4  5

 6  7  8  9 10 11 12

13 14 15 16 17 18 19

20 21 22 23 24 25 26

27 28

 

”>“和”>>“的区别:

> :是重定向符,会覆盖旧的文件以后再写入新的内容

>> : 是追加符,添加在文件尾部

 

3. 常用通道

  -n 对显示的所有行进行编号

$ cat daily_log

1 just for myself

2 I just love u

3 end

 

-s 合并空白行

 

 

分享到:
评论

相关推荐

    英文原版-Unix in 24 Hours Sams Teach Yourself 5th Edition

    In just 24 lessons of one hour or less, Sams Teach Yourself Unix in 24 Hours helps you get up and running with Unix and Unix-based operating systems such as Mac OS X and Linux.Designed for beginners...

    UNIX v7.rar

    Seventh Edition Unix, also called Version 7 Unix, Version 7 or just V7, was an important early release of the Unix operating system. V7, released in 1979, was the last Bell Laboratories release to see...

    Learning_The_UNIX_Operating_System

    Learning the Unix Operating System is a handy book for someone just starting with Unix or Linux, and it's an ideal primer for Mac and PC users of the Internet who need to know a little about Unix on ...

    Unix Power Tools Third Edition

    It's not just a collection of recipes (such collections tend to leave you hanging if you want to do something a little differently), it's not just a book of documentation (books like that have ...

    justtrustme v4版本

    justtrustme v4版本

    UNIX User's Handbook, 2nd Edition

    UNIX end-users desperately need an up-to-date reference guide with real depth: one that teaches UNIX commands and doesn't just list them! In UNIX User's Handbook, second edition, best-selling UNIX ...

    Prentice.Hall.PTR.UNIX.Shells.by.Example.4th.Edition

    Shell Programming QuickStart: makes first-time shell programmers productive in just 15 pages Complete, practical debugging chapter Updated coverage of the latest UNIX and GNU/Linux versions of awk, ...

    HARLEY HAHN'S GUIDE TO UNIX AND LINUX

    When you use Unix, you are interacting with these people, just as surely as you are interacting with me as you read this page. Unix and Linux are wonderful because they were developed by bright, ...

    Just

    OpenType则在TrueType的基础上增加了对多种语言的支持和更多的字形变体。 "压缩包子文件的文件名称列表:just"可能包含的是"Just"字体的各个字符文件,每个文件代表一个特定的字符或字符集。在设计和开发过程中,...

    JustTrustme-20200519_JustTrustMe_justtrustme_

    "JustTrustme"是一个工具或库,专门用于处理SSL(Secure Sockets Layer)证书验证的问题。SSL是互联网上广泛采用的一种安全协议,用于在客户端和服务器之间建立加密连接,确保数据传输的私密性。在通常情况下,当...

    GNU m4 is an implementation of the traditional Unix macro processor

    Besides just doing macro expansion m4 has builtin functions for including named files, running UNIX commands, doing integer arithmetic, manipulating text in various ways, recursion etc... m4 can be ...

    “JustTrustMe” 是一个Android平台上的开源工具,它被设计用来绕过某些类型的SSL/TLS证书验证

    JustTrustMe 工具的简介 功能: 绕过应用程序中对自签名SSL证书或其他不受信任证书的检查。 允许用户捕获和分析应用程序的加密流量,从而更容易进行调试和安全审计。 适用场景: 安全研究和渗透测试:在合法的授权...

    【JustTrustMe】破解 app 爬虫网络问题

    JustTrustMe是Github上的一个开源工程,他是一个Xposed模块,用来禁止SSL证书验证。以下是其简介。 JustTrustMe:An xposed module that disables SSL certificate checking. This is useful for auditing an ...

    idsa_form unix

    a copy on putty. just for windows and linux ssh.

    《just for fun》 Linus Torvalds 自传 txt格式

    1. **初识Unix**:Linus是如何接触到Unix系统的,以及Unix对他后续工作的启发。 2. **购买第一台386电脑**:这标志着他开始着手开发自己的操作系统。 3. **Linux的起源**:讲述了Linux是如何从一个简单的实验项目...

    XposedInstaller_3.1.5__JustTrustMe.rar

    《XposedInstaller_3.1.5__JustTrustMe.rar:Android系统自定义与安全增强的探索》 在Android世界中,Xposed框架是开发者和高级用户进行系统级自定义和功能扩展的重要工具。XposedInstaller_3.1.5__JustTrustMe.rar...

    UNIX环境高级编程第二版.chm 英文版 Advanced Programming in the UNIX® Environment: Second Edition

    I just got my hands on a copy, and the first few chapters have been fascinating."--Open Systems Today"A much more readable and detailed treatment of UNIX internals can be found in Advanced ...

    JustTrustMe-v3.apk.1

    JustTrustMe 3.0 自适配Hook混淆后的网络请求库代码(自适配okhttp)

    Fiji(Fiji is just ImageJ)

    Fiji不仅继承了ImageJ的基础功能,还通过大量的插件、库和自动化脚本扩展了其功能,使其成为生物医学、物理学、工程学以及许多其他领域的研究者进行图像分析的首选工具。 1. **系统兼容性** - Fiji的设计考虑到了...

Global site tag (gtag.js) - Google Analytics